42 #ifndef _DWMDATETIME_HH_ 43 #define _DWMDATETIME_HH_ 110 uint8_t
Hour()
const;
120 uint8_t
Month()
const;
125 uint16_t
Year()
const;
146 std::string
Formatted(
const std::string & format)
const;
154 bool Parse(
const std::string & s,
const std::string & format);
172 #endif // _DWMDATETIME_HH_ TimeValue64 GetTimeValue64() const
Return the equivalent TimeValue64, using the current timezone setting.
uint8_t DayOfMonth() const
Returns the day of the month (1 - 31).
This class encapsulates a time value beyond the UNIX epoch, with microsecond granularity.
Definition: DwmTimeValue.hh:72
TimeValue GetTimeValue() const
Return the equivalent TimeValue, using the current timezone setting.
DateTime(bool now=false)
Constructor.
bool operator==(const DateTime &dt) const
operator ==
uint8_t Sec() const
Returns the seconds (0 - 59).
Dwm::TimeValue class definition.
uint8_t Min() const
Returns the minutes (0 - 59).
Definition: DwmBZ2IO.hh:67
bool Parse(const std::string &s, const std::string &format)
Parses time string s according to the given format.
std::string TimeZone() const
Returns the time zone.
std::string Formatted(const std::string &format) const
Returns a string formatted according to format.
uint16_t Year() const
Returns the year.
uint8_t Month() const
Returns the month of the year (1 - 12).
bool operator<(const DateTime &dt) const
operator <
Dwm::TimeValue64 class definition.
This class just encapsulates a struct tm and some of the typical functionality for dealing with date ...
Definition: DwmDateTime.hh:63
uint16_t DayOfYear() const
Returns the day of the year (0 - 365).
bool IsDaylightSavings() const
Returns true if daylight savings is in effect.
uint8_t Hour() const
Returns the hour (0 - 23).
This class encapsulates a time value beyond the UNIX epoch, with microsecond granularity.
Definition: DwmTimeValue64.hh:72
uint8_t DayOfWeek() const
Returns the day of the week (Sunday == 0)