Secs()
Jump to navigation
Jump to search
FUNCTION: secs([<zonename>][, <precision>])
The optional <zonename> parameter may be "utc" or "local". If no <zonename> is given, "utc" is assumed.
- local
- indicates that a conversion for timezone/DST of the 'local' server time should be applied (the default).
- utc
- indicates that no timezone/DST conversions should be applied. When used this way, there is a unique one-to-one relationship between an integer and its corresponding text-string which may be useful for handling other timezones and fictional settings.
<precision> determines the number of fractional seconds shown. By default, no fractional seconds are shown.
Example
> say secs()
You say "957557434"
... wait a bit ...
> say secs()
You say "957557447"
> say secs(local,5)
You say "957532580.09348"