Creation | |
| Time | Creates a new Time object |
|
Functions | |
| Frame time | |
| FrameTime | Returns the current frame time in 1/1000s |
| FrameTimeIs | Returns TRUE if the frame time matches the given time |
| FrameTimeOver | Returns TRUE if the frame time is over the given time |
| FrameTimeUnder | Returns TRUE if the frame time is under the given time |
| FrameTimeBetween | Returns TRUE if the frame time is between the given times |
| Every | Returns TRUE at given regular intervals since the given frame time |
|
| Game time | |
| GameTime | Returns the current game time in 1/1000s |
| GameTimeIs | Returns TRUE if the game time matches the given time |
| GameTimeOver | Returns TRUE if the game time is over the given time |
| GameTimeUnder | Returns TRUE if the game time is under the given time |
| GameTimeBetween | Returns TRUE if the game time is between the given times |
|
| System time | |
| SystemTime | Returns the current system time in 1/1000s |
| SystemTimeIs | Returns TRUE if the system time matches the given time |
| SystemTimeOver | Returns TRUE if the system time is over the given time |
| SystemTimeUnder | Returns TRUE if the system time is under the given time |
| SystemTimeBetween | Returns TRUE if the system time is between the given times |
|
| Idle | |
| GetIdleFor | Returns the amount of time the player has been idle for |
| HasBeenIdleFor | Returns TRUE if the player has been idle for longer than the given time |
|
| Date & time | |
| CurrentMillisecond | Returns the current millisecond of the "real" time |
| CurrentSecond | Returns the current second of the "real" time |
| CurrentMinute | Returns the current minute of the "real" time |
| CurrentHour | Returns the current hour of the "real" time |
| CurrentDay | Alias of CurrentDayOfMonth |
| CurrentDayOfWeek | Returns the current day of the week |
| CurrentDayOfMonth | Returns the current day of the month |
| CurrentDayOfYear | Returns the current day of the year |
| CurrentWeek | Returns the current week number |
| CurrentMonth | Returns the current month |
| CurrentYear | Returns the current year |
|
| Leap year | |
| IsLeapYear | Returns TRUE if the given / current year is a leap year |
| GetDaysInYear | Returns the no. of days in the given / current year |