Gettimedate: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
One (talk | contribs)
No edit summary
mNo edit summary
Line 11: Line 11:
  <wday>    days since Sunday
  <wday>    days since Sunday
  <yday>    days since January
  <yday>    days since January
A tutorial on how this command can be used can be viewed here, [[How_to_make_a_clock|Make a in-game clock]]


[[Category:EDuke32 specific commands]]
[[Category:EDuke32 specific commands]]

Revision as of 00:50, 5 February 2011

getdate <sec> <min> <hour> <mday> <mon> <year> <wday> <yday>

Gets the time and date into gamevars:

<sec>     seconds after the minute
<min>     minutes after the hour
<hour>    hours since midnight
<mday>    day of the month
<mon>     months since January
<year>    years since 1900
<wday>    days since Sunday
<yday>    days since January

A tutorial on how this command can be used can be viewed here, Make a in-game clock