GetDate

From LoTROInterface Wiki

Jump to: navigation, search


Gets the current date.

Syntax

Lua
function Engine.GetDate();

Returns

Type: Object
Returns a table containing information about the current date. The following fields are available: Year, Month, Day, Hour, Minute, Second, DayOfWeek, DayOfYear, and IsDST.


Examples

Demonstrates GetDate()
Turbine.Shell.WriteLine(Turbine.Engine.GetDate().Minute);

Turbine.Shell.WriteLine(Turbine.Engine.GetDate().Hour);

Remarks

Gets the current date.

Personal tools