Man time

From LSWiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 19:12, 11 June 2007 (edit)
Laine (Talk | contribs)

← Previous diff
Current revision (19:12, 11 June 2007) (edit)
Laine (Talk | contribs)

 

Current revision

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