Man time

From LSWiki

Revision as of 18:12, 11 June 2007; Laine (Talk | contribs)
(diff) ←Older revision | Current revision | Newer revision→ (diff)
Jump to: navigation, search

Description

The time algorithm used by gtime() is simple, it's a conversion of the system time (represented as a 32 bit integer of seconds since January 1, 1970 GMT) into a corresponding game time (a 31 bit integer of the seconds since Arienle 1, 480).

The file /lib/time.h hs quite a few algorithms and constants defined to help determine what time it is currently.

There are two more important efuns. cgtime() takes an integer in the form of gtime() and converts it into a date string. rcgtime() reverses this procedure, calculating the integer from the string.

See Also

calendar(build)

Personal tools