Hour: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
Brendon (talk | contribs)
Created page with "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 a..."
 
Brendon (talk | contribs)
No edit summary
Line 1: Line 1:
HOUR(''time'')
Hour(''time'')


'''Description'''
== 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.
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'''
== Example ==


<pre>
<pre>
REM HOUR Example
Rem Hour Example
'HOUR returns hour of day from a time
'Hour returns hour of day from a time
PRINT "HOUR of " & FormatDateTime(Now,4) & _ "is " & HOUR(Now)
Print "Hour of " & FormatDateTime(Now,4) & _ "is " & Hour(Now)
</pre>
</pre>


'''Output'''
== Output ==


<pre>
<pre>
The HOUR of 8/18/1998 10:52:44 PM is 22
The Hour of 8/18/1998 10:52:44 PM is 22
(sample date output is system dependant)
(sample date output is system dependant)
</pre>
</pre>


'''Related Items'''
== Related Items ==


[[day|DAY]], [[minute|MINUTE]], [[month|MONTH]], [[now|NOW]], [[second|SECOND]], [[time|TIME]], [[year|YEAR]]
[[day|DAY]], [[minute|MINUTE]], [[month|MONTH]], [[now|NOW]], [[second|SECOND]], [[time|TIME]], [[year|YEAR]]
[[Category:Language Reference]]

Revision as of 01:27, 17 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)

Related Items

DAY, MINUTE, MONTH, NOW, SECOND, TIME, YEAR