Hatch Game Engine Documentation v1.4.0
The documentation for the Hatch Game Engine
Loading...
Searching...
No Matches
Date Class Reference

Date and time functions. More...

Public Member Functions

integer GetEpoch ()
 Gets the amount of seconds from 1 January 1970, 0:00 UTC.
WEEKDAY GetWeekday ()
 Gets the current day of the week, starting from 1 January 1970, 0:00 UTC.
integer GetSecond ()
 Gets the the second of the current minute.
integer GetMinute ()
 Gets the the minute of the current hour.
integer GetHour ()
 Gets the the hour of the current day.
TIMEOFDAY GetTimeOfDay ()
 Gets the the current time of the day (Morning, Midday, Evening, Night).
decimal GetTicks ()
 Gets the milliseconds since the application began running.

Detailed Description

Date and time functions.

Member Function Documentation

◆ GetEpoch()

integer Date.GetEpoch ( )

Gets the amount of seconds from 1 January 1970, 0:00 UTC.

Returns
The amount of seconds from epoch.

◆ GetHour()

integer Date.GetHour ( )

Gets the the hour of the current day.

Returns
The hour of the day (from 0 to 23).

◆ GetMinute()

integer Date.GetMinute ( )

Gets the the minute of the current hour.

Returns
The minute of the hour (from 0 to 59).

◆ GetSecond()

integer Date.GetSecond ( )

Gets the the second of the current minute.

Returns
The second of the minute (from 0 to 59).

◆ GetTicks()

decimal Date.GetTicks ( )

Gets the milliseconds since the application began running.

Returns
Returns milliseconds since the application began running.

◆ GetTimeOfDay()

TIMEOFDAY Date.GetTimeOfDay ( )

Gets the the current time of the day (Morning, Midday, Evening, Night).

Returns
The time of day based on the current hour.

◆ GetWeekday()

WEEKDAY Date.GetWeekday ( )

Gets the current day of the week, starting from 1 January 1970, 0:00 UTC.

Returns
The day of the week.