Murl Engine Lua Addon API  Version 1.0 beta
Murl.System.DateTime

The date and time class provides date and time members.


Table members

Functions


Murl.System.DateTime.GetNow()

Get the date and time from now.

Murl.System.DateTime GetNow()

Returns
Murl.System.DateTime The DateTime object containing the date and time from now.

Murl.System.DateTime.new()

The default constructor. All members are initialized to zero.

Murl.System.DateTime new()

Returns
Murl.System.DateTime

Murl.System.DateTime.new(time)

Constructor taking a time object.

Murl.System.DateTime new(Murl.System.Time time)

Parameters
timeThe number of seconds since 00:00 hours, Jan 1, 1970 UTC.
Returns
Murl.System.DateTime


Methods


ToString()

Get the string representation of the object.

String ToString()

Returns
String The string representation of the object.


Metamethods


The tostring operator

Converts the object content to a string in a reasonable format.

Returns
ToString()


Instance Members


mHour

The hours since midnight in range [0 . . 23].

Returns
Integer

mMinute

The minutes after the hour in range [0 . . 59].

Returns
Integer

mSecond

The seconds after the minute in range [0 . . 59].

Returns
Integer

mYear

The year anno domini.

Returns
Integer

mMonth

The month in range [1 . . 12].

Returns
Integer

mDay

The day in range [1 . . 31].

Returns
Integer

mDayOfWeek

The day of week in range [0 . . 6] == [Monday . . Sunday].

Returns
Integer

mDayOfYear

The day of year in range [0 . . 365].

Returns
Integer