Hour: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 22: | Line 22: | ||
== Related Items == | == Related Items == | ||
[[day| | [[day|Day]], [[minute|Minute]], [[month|Month]], [[now|Now]], [[second|Second]], [[time|Time]], [[year|Year]] | ||
[[Category:Language Reference]] | [[Category:Language Reference]] |
Revision as of 01:05, 24 August 2012
Hour(time)
Description
Hour returns a whole number ranging from 0 to 23 that represents the hour of day of a given time. The required parameter, time, can be any numeric or string expression, or any expression that represents a time.
Example
Rem Hour Example 'Hour returns hour of day from a time Print "Hour of " & FormatDateTime(Now,4) & _ "is " & Hour(Now)
Output
The Hour of 8/18/1998 10:52:44 PM is 22 (sample date output is system dependant)