Minute (function)

Syntax

Minute(time)

Description

Returns the minute of the day encoded in the specified time parameter.

Comments

The value returned is as an Integer between 0 and 59 inclusive.

The time parameter is any expression that converts to a Date.

Example

This example takes the current time; extracts the hour, minute, and second; and displays them as the current time.

Sub Main()
  Msgbox "It is now minute " & Minute(Time) & " of the hour."
End Sub

See Also

Day (function); Second (function); Month (function); Year (function); Hour (function); Weekday (function); DatePart (function).

More information

M