Std time time
Class Time#
The Time class.
The Time class represents a point in time.
Note that the current implementation of the time class only has second precision.
On some 32 bit targets, it may also be suject to the year 2038 problem:
https://en.wikipedia.org/wiki/Year_2038_problem
Consts | |
---|---|
DayNames | |
MonthNames |
Constructors | |
---|---|
New | Creates a new time. |
Properties | |
---|---|
Day | Day of the month (1-31) (read only) |
DaylightSavings | True if daylight savings is in effect. (read only) |
Hours | Hours since midnight (0-23) (read only) |
Minutes | Minutes (0-59) (read only) |
Month | Month since January (0-11) (read only) |
Seconds | Seconds (0-61) (read only) |
WeekDay | Week day since Sunday (0-6) (read only) |
Year | Year (read only) |
YearDay | Days since January 1 (0-365) (read only) |
Methods | |
---|---|
Operator + | Overloaded addition operator. |
Operator - | Overloaded subtraction operator. |
Operator <=> | Overloaded comparison operator. |
ToString | Converts time to a string. |
Operator To | Converts time to a string. |
Functions | |
---|---|
FromFileTime | Converts a file time to a time. |
Now | Gets current time. |
Parse | Parses a time from a string. |