Aufgabe 5: Zeitscheiben
DateTime Struct Reference
Date and Time. More...
#include <object/time.h>
Public Member Functions | |
DateTime () | |
Default constructor. | |
DateTime (uint32_t epoch) | |
Construct from a timestamp (Unix epoch time) | |
uint32_t | toTimestamp () const |
Convert to Unix epoch time. More... | |
Static Public Attributes | |
static const char *const | weekdays [8] |
Name of weekdays. More... | |
static const char *const | months [13] |
Name of months. More... | |
Detailed Description
Date and Time.
- Note
- only Dates between 1 January 2000 and 31 December 2099 are supported
Member Function Documentation
uint32_t DateTime::toTimestamp | ( | ) | const |
Convert to Unix epoch time.
- Returns
- Seconds since 1 January 1970
Member Data Documentation
|
static |
Initial value:
=
{ nullptr, "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat" }
Name of weekdays.
|
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:
- object/time.h
- object/time.cc