Garry's Mod Wiki

Revision Difference

Structures/DateData#517051

<cat>struct</cat> <structure> <description>Table returned by <page>os.date</page> and used by <page>os.time</page>.</description> <fields>{{StructureField|number|day|Day of the month</fields>⤶ <fields>⤶ <item name="day" type="number">Day of the month</item>⤶ <item name="hour" type="number">Hour</item>⤶ <item name="isdst" type="boolean">Daylight saving enabled</item>⤶ <item name="min" type="number">Minute</item>⤶ <item name="month" type="number">Month&amp;lt;br&amp;gt;⤶ January: 1, December: 12</item>⤶ <item name="sec" type="number">Second</item>⤶ <item name="wday" type="number">Day of the week&amp;lt;br&amp;gt;⤶ Sunday: 1, Saturday: 7</item>⤶ <item name="yday" type="number">Day of the year</item>⤶ <item name="year" type="number">Year</item>⤶ </fields>⤶ </structure> {{StructureField|number|hour|Hour}}{{StructureField|boolean|isdst|Daylight saving enabled}}{{StructureField|number|min|Minute}}{{StructureField|number|month|Month<br/>⤶ January: 1, December: 12⤶ }}{{StructureField|number|sec|Second}}{{StructureField|number|wday|Day of the week<br/>⤶ Sunday: 1, Saturday: 7⤶ }}{{StructureField|number|yday|Day of the year}}{{StructureField|number|year|Year}}⤶ }}