Time(): Difference between revisions

From TinyMUX
Jump to navigation Jump to search
Mark (talk | contribs)
Init page.
 
(No difference)

Latest revision as of 00:02, 17 August 2006


time([<zonename>][, <precision>])


The optional <zonename> parameter may be "utc" or "local". If no <zonename> is given, "local" is assumed.

  • local
    • Gives you the current local time string of the machine the MUX is running on. This time is affected by the daylight savings time (or 'summer') rules in force at the server's location.
  • utc
    • Gives you the time string for the UTC time zone.

<precision> determines the number of fractional seconds shown. By default, no fractional seconds are shown.

Example

> say time()

You say "Fri May 05 13:05:39 2000"

> say time(utc,3)

You say "Fri May 05 20:05:39.667 2000"

convsecs(), convtime(), secs()