ToSeconds
This reference topic applies to FQL v4. Go to this page for the latest FQL v10 reference topics. |
ToSeconds( value )
to_seconds( value )
ToSeconds( value )
ToSeconds( value )
ToSeconds( value )
ToSeconds( value )
Description
The ToSeconds
function converts a value to the number of seconds
since Unix epoch (midnight, January 1, 1970), if possible.
Attempting to convert a value to a number of seconds which has no numeric representation results in an "invalid argument" error.
Parameters
Parameter | Type | Definition and Requirements |
---|---|---|
|
Any |
The value to attempt to convert to a number of seconds since Unix epoch. If you provide a Number, it is interpreted as the number of microseconds since Unix epoch. |