time()
time()
Section titled “time()”time()
time(<timezone>)
time(<dbref>)
time(<timezone>, <places>)
time() gives you the current time on the MUSH. By default this is the time on the server the MUSH is running on, and not the time of the caller.
With an argument, time() returns the time in the specified timezone, or in the timezone set in the specified object’s TZ attribute; for more information, see timezones.
utctime() is an alias for time(utc).
A second argument, as TinyMUX takes it, gives the seconds up to <places> decimal places, at most 7; trailing zeros are dropped. A <timezone> of local is the server’s time.
Timezone examples
Section titled “Timezone examples”Examples (Assuming the server is the USA’s Pacific timezone):
> think utctime()Fri Mar 02 03:19:54 2012> think time(utc)Fri Mar 02 03:19:54 2012> think time()Thu Mar 01 19:19:54 2012> think time(-8)Thu Mar 01 19:20:25 2012> think time(US/Pacific)Thu Mar 01 19:20:25 2012> think time(utc,3)Fri Mar 02 03:19:54.125 2012::: seealso