hour
get hour from a datetime
hour
(in dt datetime);
Description
hour takes a datetime and returns
an integer containing a number representing the hour of the datetime.
Parameters
dt –
A datetime.
Return Values
An INTEGER containing the hour.
Examples
Simple example
Get current hour.
SQL> select hour (now ());
callret
INTEGER
_______________________________________________________________________________
21
See Also
dayname,
dayofmonth,
dayofweek,
dayofyear,
quarter,
week,
month,
year,
minute,
second,
timezone