DateTime.h File Reference
Include dependency graph for DateTime.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Classes | |
class | DateTime |
Date and time class. More... | |
Macros | |
#define | SECS_PER_MIN (60UL) |
#define | SECS_PER_HOUR (3600UL) |
#define | SECS_PER_DAY (SECS_PER_HOUR * 24L) |
#define | DAYS_PER_WEEK (7L) |
#define | SECS_PER_WEEK (SECS_PER_DAY * DAYS_PER_WEEK) |
#define | SECS_PER_YEAR (SECS_PER_WEEK * 52L) |
#define | SECS_YR_2000 (946681200UL) |
Enumerations | |
enum | dtDays_t { dtSunday , dtMonday , dtTuesday , dtWednesday , dtThursday , dtFriday , dtSaturday } |
Days of week. More... | |
enum | dtMonth_t { dtJanuary , dtFebruary , dtMarch , dtApril , dtMay , dtJune , dtJuly , dtAugust , dtSeptember , dtOctober , dtNovember , dtDecember } |
Months. More... | |
Functions | |
constexpr uint8_t | numberOfSeconds (time_t time) |
constexpr uint8_t | numberOfMinutes (time_t time) |
constexpr uint8_t | numberOfHours (time_t time) |
constexpr dtDays_t | dayOfWeek (time_t time) |
constexpr uint8_t | elapsedDays (time_t time) |
constexpr unsigned | elapsedSecsToday (time_t time) |
constexpr time_t | previousMidnight (time_t time) |
constexpr time_t | nextMidnight (time_t time) |
constexpr unsigned | elapsedSecsThisWeek (time_t time) |