Secs()

From TinyMUX
Revision as of 03:02, 29 November 2010 by Ihavenomouth (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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"

Related Topics

convsecs(), convtime(), time()