GetDate
From LoTROInterface Wiki
API Reference > Turbine.Engine.GetDate()
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.