Time()

From TinyMUX
Jump to navigation Jump to search


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"

Related Topics

convsecs(), convtime(), secs()