#include "ot/util/DateTime.h"
Method Summary
|
void |
adjust(short days, short hours, short minutes, short seconds, short milliseconds)
|
String |
Format(const String& format) const
|
static DateTime |
FromAnsiTime(long secsSinceEpoch, unsigned long microSeconds)
|
void |
getDate(UShort& year, UShort& month, UShort& day, UShort& dayOfWeek) const
|
unsigned long |
getJulianDay() const
|
static DateTime |
GetSystemTime()
|
void |
getTime(UShort& hour, UShort& minute, UShort& second, UShort& millisecond) const
|
unsigned long |
getTimeOfDay() const
|
static bool |
IsLeapYear(UShort nYear)
|
bool |
isValid() const
|
static bool |
IsValidDate(UShort year, UShort month, UShort day)
|
static bool |
IsValidTime(UShort hour, UShort minute, UShort second, UShort ms)
|
bool |
operator!=(const DateTime& rhs) const
|
bool |
operator<(const DateTime& rhs) const
|
bool |
operator<=(const DateTime& rhs) const
|
bool |
operator==(const DateTime& rhs) const
|
bool |
operator>(const DateTime& rhs) const
|
bool |
operator>=(const DateTime& rhs) const
|
protected bool |
parseDateTime(const String& strDate)
|
void |
setDate(UShort year, UShort month, UShort day)
|
void |
setTime(UShort hour, UShort minute, UShort second, UShort millisecond)
|
time_t |
toAnsiTime() const
|
void |
toAnsiTM(struct tm* ptm) const
|
String |
toString() const
|
Constructor/Destructor Detail |
DateTime
DateTime()
-
DateTime
DateTime(const String& strDateTime)
-
DateTime
DateTime(unsigned long julianDay)
-
DateTime
DateTime(unsigned long julianDay,
unsigned long milliseconds)
-
DateTime
DateTime(UShort year,
UShort month,
UShort day)
-
DateTime
DateTime(UShort year,
UShort month,
UShort day,
UShort hour,
UShort minute,
UShort second,
UShort ms)
-
adjust
void adjust(short days,
short hours,
short minutes,
short seconds,
short milliseconds)
-
Format
String Format(const String& format) const
-
FromAnsiTime
static DateTime FromAnsiTime(long secsSinceEpoch,
unsigned long microSeconds)
-
getDate
void getDate(UShort& year,
UShort& month,
UShort& day,
UShort& dayOfWeek) const
-
getJulianDay
unsigned long getJulianDay() const
-
GetSystemTime
static DateTime GetSystemTime()
-
getTime
void getTime(UShort& hour,
UShort& minute,
UShort& second,
UShort& millisecond) const
-
getTimeOfDay
unsigned long getTimeOfDay() const
-
IsLeapYear
static bool IsLeapYear(UShort nYear)
-
isValid
bool isValid() const
-
IsValidDate
static bool IsValidDate(UShort year,
UShort month,
UShort day)
-
IsValidTime
static bool IsValidTime(UShort hour,
UShort minute,
UShort second,
UShort ms)
-
operator!=
bool operator!=(const DateTime& rhs) const
-
operator<
bool operator<(const DateTime& rhs) const
-
operator<=
bool operator<=(const DateTime& rhs) const
-
operator==
bool operator==(const DateTime& rhs) const
-
operator>
bool operator>(const DateTime& rhs) const
-
operator>=
bool operator>=(const DateTime& rhs) const
-
parseDateTime
protected bool parseDateTime(const String& strDate)
-
setDate
void setDate(UShort year,
UShort month,
UShort day)
-
setTime
void setTime(UShort hour,
UShort minute,
UShort second,
UShort millisecond)
-
toAnsiTime
time_t toAnsiTime() const
-
toAnsiTM
void toAnsiTM(struct tm* ptm) const
-
toString
String toString() const
-
Found a bug or missing feature? Please email us at support@elcel.com