DateTime Class Reference
[Types]

#include <DateTime.h>

Inheritance diagram for DateTime:
IMemoryValidate IComparable IHashable

List of all members.

Public Member Functions

 DateTime (const DateTime &dtm)
 DateTime (const Date &dt)
 DateTime (int year, int month, int day)
 DateTime (int year, int month, int day, int hour, int minute, int second)
 DateTime (const time_t t)
int Year () const
int Month () const
int Day () const
int Hour () const
int Minutes () const
int Seconds () const
bool IsDayLightSavingsTime () const
int JulianDate () const
enum Date::DayOfWeek DayOfWeek () const
 @ brief Day of week (1 is sunday).
Date DatePart () const
bool IsLeapYear () const
time_t ToSysTime () const
void ToString (char *buf, int buflen) const
StringPtr ToString () const
StringPtr ToStringISO8601 () const
 YYYY-MM-DD HH:MM:SS.
StringPtr ToTimeString () const
 HH:MM:SS.
DateTime AddSeconds (int64 seconds) const
DateTime AddMinutes (int minutes) const
DateTime AddHours (int hours) const
DateTime AddDays (int days) const
DateTime AddMonths (int months) const
DateTime AddYears (int years) const
int64 DiffInSeconds (const DateTime dtm) const
int64 DiffInMinutes (const DateTime dtm) const
int64 DiffInHours (const DateTime dtm) const
int64 DiffInDays (const DateTime dtm) const
bool Equals (const DateTime &dt) const
bool Equals (const DateTime *dt) const
DateTimeoperator= (const DateTime &dtm)
bool operator< (const DateTime &dt) const
bool operator<= (const DateTime &dt) const
bool operator> (const DateTime &dt) const
bool operator>= (const DateTime &dt) const
bool operator== (const DateTime &dt) const
bool operator!= (const DateTime &dt) const
virtual int32 HashCode () const
virtual bool Equals (const IComparable *a) const
virtual int Compare (const IComparable *a) const
virtual bool Equals (const IComparable &a) const
virtual int Compare (const IComparable &a) const
virtual int32 MajicNumber () const
 Class instances with the same majic number are of the same type (can be casted). Majic numbers above 0xFFFF are available for user applications.
virtual void ValidateMem () const
virtual void CheckMem () const

Static Public Member Functions

static DateTime Now ()
 The currrent date and time (not a high resolution timer).
static DateTime Parse (const String &str)
static bool IsDateTime (const String &str)

Protected Attributes

struct tm m_dtm
time_t m_timet

Detailed Description

@ A date and time.

Definition at line 54 of file DateTime.h.


Member Function Documentation

DateTime DateTime::AddSeconds ( int64  seconds  )  const

optimize

Definition at line 701 of file Dates.cpp.


The documentation for this class was generated from the following files: