dreamworkAPI
Ctrl K
GitHub
typeDocs / time / DateInfo

time.DateInfo

typesharedmenusource

Represents a date and time info.

Fields

NameTypeDescription
dayintegerThe day of the month. [1-31]
monthintegerThe month of the year. [1-12]
yearintegerThe year.
year_dayintegerThe day of the year. [1–366]
year_weekintegerThe 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_weekintegerThe week number of the month. [1-5]
weekdayintegerThe day of the week, 0 is Sunday. [0-6]
hoursintegerThe number of hours. [0-23]
minutesintegerThe number of minutes. [0-59]
secondsintegerThe number of seconds. [0-59]
hours12integerThe number of hours in 12-hour format. [1-12]
period"AM" | "PM"The period of the day.
is_dstbooleanIs the date in summer time (daylight saving)?
offsetintegerThe UTC offset of the date in seconds, 0 for UTC.
millisecondsintegerThe number of milliseconds. [0-999]
microsecondsintegerThe number of microseconds. [0-999]
nanosecondsintegerThe number of nanoseconds. [0-999]
Generated from the dreamwork meta branch.