4 #ifndef RUDIMENTS_DATETIME_H 5 #define RUDIMENTS_DATETIME_H 7 #include <rudiments/private/datetimeincludes.h> 29 bool initialize(
const char *tmstring);
36 bool initialize(time_t seconds);
43 bool initialize(time_t seconds, time_t microseconds);
56 bool initialize(
const void *tmstruct);
63 bool getSystemDateAndTime();
75 bool getHardwareDateAndTime(
const char *hwtz);
84 bool getAdjustedHardwareDateAndTime(
const char *hwtz);
90 bool setSystemDateAndTime();
102 bool setHardwareDateAndTime(
const char *hwtz);
107 int32_t getHour()
const;
111 int32_t getMinutes()
const;
115 int32_t getSeconds()
const;
119 int32_t getMicroseconds()
const;
123 int32_t getMonth()
const;
128 const char *getMonthName()
const;
133 const char *getMonthAbbreviation()
const;
138 int32_t getDayOfMonth()
const;
143 int32_t getDayOfWeek()
const;
148 int32_t getDayOfYear()
const;
153 int32_t getYear()
const;
157 bool isDaylightSavingsTime()
const;
160 const char *getTimeZoneString()
const;
163 int32_t getTimeZoneOffset()
const;
175 bool adjustTimeZone(
const char *newtz);
187 bool adjustTimeZone(
const char *newtz,
bool ignoredst);
192 bool setSeconds(int32_t seconds);
197 bool setMicroseconds(int32_t microseconds);
201 bool setMinutes(int32_t minutes);
205 bool setHours(int32_t hours);
209 bool setDays(int32_t days);
213 bool setMonths(int32_t months);
217 bool setYears(int32_t years);
221 bool addSeconds(int32_t seconds);
225 bool addMicroseconds(int32_t microseconds);
229 bool addMinutes(int32_t minutes);
233 bool addHours(int32_t hours);
237 bool addDays(int32_t days);
241 bool addMonths(int32_t months);
245 bool addYears(int32_t years);
254 const char *getString();
268 const char *getString(
bool microseconds);
271 time_t getEpoch()
const;
276 static const char *
const *getTimeZoneAbbreviations();
282 static const int32_t *getTimeZoneOffsets();
290 static bool validDateTime(
const char *
string);
298 static char *getString(time_t seconds);
306 static char *getString(time_t seconds, time_t microseconds);
314 static char *getString(
const void *tmstruct);
322 static time_t getEpoch(
const char *datestring);
330 static time_t getEpoch(
const void *tmstruct);
345 #include <rudiments/private/datetime.h> Definition: threadmutex.h:11
Definition: datetime.h:12