hour()

Extracts the hour from a given timestamp.

Syntax

hour(timestamp)

Parameters

Parameter Type Description
timestamp Number Timestamp in seconds.

Return Value

Examples

dt = datetime();  // returns 1740923491.09200001
hour(dt);         // returns 14

See also

date
datetime
year
month
day
hour
minute
second
millisec