![]() |
Murl Engine Lua Addon API
Version 1.0 beta
|
The date and time class provides date and time members.
Get the date and time from now.
Murl.System.DateTime GetNow()
The default constructor. All members are initialized to zero.
Murl.System.DateTime new()
Constructor taking a time object.
Murl.System.DateTime new(Murl.System.Time time)
time | The number of seconds since 00:00 hours, Jan 1, 1970 UTC. |
Get the string representation of the object.
String ToString()
Converts the object content to a string in a reasonable format.
The hours since midnight in range [0 . . 23].
The minutes after the hour in range [0 . . 59].
The seconds after the minute in range [0 . . 59].
The year anno domini.
The month in range [1 . . 12].
The day in range [1 . . 31].
The day of week in range [0 . . 6] == [Monday . . Sunday].
The day of year in range [0 . . 365].