second()

Extracts the second from a given timestamp.

Syntax

second(timestamp)

Parameters

Parameter Type Description
timestamp Number Timestamp in seconds.

Return Value

Examples

dt = datetime();  // returns 1740923491.09200001
second(dt);       // returns 23

See also

date
datetime
year
month
day
hour
minute
second
millisec