4#ifndef RUDIMENTS_DATETIME_H
5#define RUDIMENTS_DATETIME_H
7#include <rudiments/private/datetimeincludes.h>
39 bool init(
const char *tmstring);
54 bool init(time_t seconds, time_t microseconds);
65 bool init(
const void *tmstruct);
369 static char *
getString(time_t seconds, time_t microseconds);
434 bool ddmm,
bool yyyyddmm,
435 const char *datedelimiters,
436 int16_t *year, int16_t *month,
437 int16_t *day, int16_t *hour,
438 int16_t *minute, int16_t *second,
439 int32_t *microsecond,
bool *isnegative);
474 int16_t year, int16_t month,
475 int16_t day, int16_t hour,
476 int16_t minute, int16_t second,
477 int32_t microsecond,
bool isnegative);
491 #include <rudiments/private/datetime.h>
bool addDays(int32_t days)
bool addMonths(int32_t months)
static const char *const * getTimeZoneAbbreviations()
static void setMutex(threadmutex *mtx)
bool initFromSystemDateTime()
bool init(time_t seconds)
const char * getMonthName()
bool init(const char *tmstring)
static bool parse(const char *datetime, bool ddmm, bool yyyyddmm, const char *datedelimiters, int16_t *year, int16_t *month, int16_t *day, int16_t *hour, int16_t *minute, int16_t *second, int32_t *microsecond, bool *isnegative)
static char * getString(time_t seconds)
bool setSecond(int32_t second)
bool setTimeZone(const char *newtz)
const char * getSqlString(bool microseconds)
bool addMicroseconds(int32_t microseconds)
static const int32_t * getTimeZoneOffsets()
bool setYear(int32_t year)
static char * getString(const void *tmstruct)
bool init(const void *tmstruct)
const char * getString(bool microseconds)
bool init(time_t seconds, time_t microseconds)
const char * getSqlString()
bool setHardwareDateTime(const char *hwtz)
bool addMinutes(int32_t minutes)
static time_t getEpoch(const char *datestring)
bool initFromHardwareDateTime(const char *hwtz)
bool setTimeZone(const char *newtz, bool ignoredst)
bool setDayOfMonth(int32_t day)
datetime & operator=(datetime &d)
static bool isValidDateTime(const char *string)
bool setMicrosecond(int32_t microsecond)
bool isDaylightSavingsTime()
bool setHour(int32_t hour)
int32_t getTimeZoneOffset()
const char * getTimeZoneString()
static char * formatAs(const char *format, int16_t year, int16_t month, int16_t day, int16_t hour, int16_t minute, int16_t second, int32_t microsecond, bool isnegative)
bool initFromAdjustedHardwareDateTime(const char *hwtz)
bool setMinute(int32_t minute)
bool addSeconds(int32_t seconds)
const char * getMonthAbbreviation()
static time_t getEpoch(const void *tmstruct)
bool addYears(int32_t years)
bool setMonth(int32_t month)
static char * getString(time_t seconds, time_t microseconds)
bool addHours(int32_t hours)
Definition threadmutex.h:11