Description:
Get the hour from a specified datetime.
Syntax:
hour(datetimeExp)
Note:
Get the hour from the specified time datetimeExp.
Parameter:
datetimeExp |
Date or standard datetime format string |
Return value:
Integer
Example:
hour("1983-12-15") |
0 |
hour("1983-12-15 10:30:25") |
10 |
hour(datetime("2006-01-15 13:20:30")) |
13 |
Related function: