Date and Time.
More...
#include <object/time.h>
|
static const char *const | weekdays [8] |
| Name of weekdays.
|
|
static const char *const | months [13] |
| Name of months.
|
|
Date and Time.
- Note
- only Dates between 1 January 2000 and 31 December 2099 are supported
◆ DateTime() [1/2]
◆ DateTime() [2/2]
Construct from a timestamp (Unix epoch time)
◆ toTimestamp()
uint32_t DateTime::toTimestamp |
( |
| ) |
const |
Convert to Unix epoch time.
- Returns
- Seconds since 1 January 1970
◆ second
◆ minute
◆ hour
◆ weekday
Weekday (1
(Sun) - 7
(Sat))
◆ day
◆ month
◆ year
Year (0
(2000) - 99
(2099))
◆ weekdays
const char *const DateTime::weekdays |
|
static |
Initial value:=
{ nullptr, "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" }
Name of weekdays.
◆ months
const char *const DateTime::months |
|
static |
Initial value:=
{ nullptr, "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sept", "Oct", "Nov", "Dec" }
Name of months.
The documentation for this struct was generated from the following files: