time.DateInfo
Represents a date and time info.
Fields
| Name | Type | Description |
|---|---|---|
day | integer | The day of the month. [1-31] |
month | integer | The month of the year. [1-12] |
year | integer | The year. |
year_day | integer | The day of the year. [1–366] |
year_week | integer | The week number of the year, with Monday as the first day of the week; days before the first Monday are in week 0. [0-53] |
month_week | integer | The week number of the month. [1-5] |
weekday | integer | The day of the week, 0 is Sunday. [0-6] |
hours | integer | The number of hours. [0-23] |
minutes | integer | The number of minutes. [0-59] |
seconds | integer | The number of seconds. [0-59] |
hours12 | integer | The number of hours in 12-hour format. [1-12] |
period | "AM" | "PM" | The period of the day. |
is_dst | boolean | Is the date in summer time (daylight saving)? |
offset | integer | The UTC offset of the date in seconds, 0 for UTC. |
milliseconds | integer | The number of milliseconds. [0-999] |
microseconds | integer | The number of microseconds. [0-999] |
nanoseconds | integer | The number of nanoseconds. [0-999] |