TrueReality  v0.1.1912
trUtil::DateTime::TimeFormat Class Reference

#include <DateTime.h>

Inheritance diagram for trUtil::DateTime::TimeFormat:
Collaboration diagram for trUtil::DateTime::TimeFormat:

Static Public Attributes

static const TimeFormat LOCAL_DATE_AND_TIME_FORMAT
 LOCAL_DATE_AND_TIME_FORMAT: 04-18-08 13:22:50. More...
 
static const TimeFormat LOCAL_DATE_FORMAT
 LOCAL_DATE_FORMAT: 04/18/08. More...
 
static const TimeFormat CLOCK_TIME_12_HOUR_FORMAT
 CLOCK_TIME_12_HOUR_FORMAT: 01:22:50 PM. More...
 
static const TimeFormat CLOCK_TIME_24_HOUR_FORMAT
 CLOCK_TIME_24_HOUR_FORMAT: 13:22:50. More...
 
static const TimeFormat LEXICAL_DATE_FORMAT
 LEXICAL_DATE_FORMAT: April 18, 2008. More...
 
static const TimeFormat CALENDAR_DATE_FORMAT
 CALENDAR_DATE_FORMAT: 2008-04-18. More...
 
static const TimeFormat ORDINAL_DATE_FORMAT
 ORDINAL_DATE_FORMAT: 2008-109. More...
 
static const TimeFormat WEEK_DATE_FORMAT
 WEEK_DATE_FORMAT: 2008-W15-5. More...
 
static const TimeFormat CALENDAR_DATE_AND_TIME_FORMAT
 CALENDAR_DATE_AND_TIME_FORMAT: 2008-04-18T13:22:50-05:00. More...
 

Protected Member Functions

 ~TimeFormat ()
 Destructor. More...
 
- Protected Member Functions inherited from trUtil::EnumerationString
virtual int Compare (const std::string &nameString) const
 Virtual string compare method to used by the operators that take a string. More...
 
virtual ~EnumerationString ()
 Private virtual destructor to get rid of compile warning. More...
 
 EnumerationString (const std::string &name)
 Construct the EnumerationString. More...
 

Private Member Functions

 TimeFormat (const std::string &name)
 Constructor. More...
 

Additional Inherited Members

- Public Member Functions inherited from trUtil::EnumerationString
const std::string & GetName () const
 Inlined because it's called frequently. More...
 
bool operator== (const EnumerationString &rhs) const
 Equality test for an EnumerationString. More...
 
bool operator!= (const EnumerationString &rhs) const
 Inequality test for an EnumerationString. More...
 
bool operator== (const std::string &rhs) const
 Overloaded string compare operator for the EnumerationString. More...
 
bool operator!= (const std::string &rhs) const
 Overloaded inequality test for this EnumerationString's string value. More...
 
bool operator< (const std::string &rhs) const
 Overloaded less than test for this EnumerationString's string value. More...
 
bool operator> (const std::string &rhs) const
 Overloaded greater than test for this EnumerationString's string value. More...
 
bool operator< (const EnumerationString &rhs) const
 Overloaded less than operator. More...
 

Detailed Description

Definition at line 142 of file DateTime.h.

Constructor & Destructor Documentation

◆ ~TimeFormat()

trUtil::DateTime::TimeFormat::~TimeFormat ( )
inlineprotected

Destructor.

Definition at line 182 of file DateTime.h.

◆ TimeFormat()

trUtil::DateTime::TimeFormat::TimeFormat ( const std::string &  name)
inlineprivate

Constructor.

Parameters
nameThe name.

Definition at line 193 of file DateTime.h.

References trUtil::StringUtils::ToString().

Here is the call graph for this function:

Member Data Documentation

◆ CALENDAR_DATE_AND_TIME_FORMAT

const DateTime::TimeFormat trUtil::DateTime::TimeFormat::CALENDAR_DATE_AND_TIME_FORMAT
static

CALENDAR_DATE_AND_TIME_FORMAT: 2008-04-18T13:22:50-05:00.

Definition at line 173 of file DateTime.h.

Referenced by trUtil::DateTime::ResetToDefaultValues(), and trUtil::DateTime::ToString().

◆ CALENDAR_DATE_FORMAT

const DateTime::TimeFormat trUtil::DateTime::TimeFormat::CALENDAR_DATE_FORMAT
static

CALENDAR_DATE_FORMAT: 2008-04-18.

Definition at line 164 of file DateTime.h.

Referenced by trUtil::DateTime::ToString().

◆ CLOCK_TIME_12_HOUR_FORMAT

const DateTime::TimeFormat trUtil::DateTime::TimeFormat::CLOCK_TIME_12_HOUR_FORMAT
static

CLOCK_TIME_12_HOUR_FORMAT: 01:22:50 PM.

Definition at line 155 of file DateTime.h.

Referenced by trUtil::DateTime::ToString().

◆ CLOCK_TIME_24_HOUR_FORMAT

const DateTime::TimeFormat trUtil::DateTime::TimeFormat::CLOCK_TIME_24_HOUR_FORMAT
static

CLOCK_TIME_24_HOUR_FORMAT: 13:22:50.

Definition at line 158 of file DateTime.h.

Referenced by trUtil::Logging::LogWriterConsole::LogMessage(), and trUtil::DateTime::ToString().

◆ LEXICAL_DATE_FORMAT

const DateTime::TimeFormat trUtil::DateTime::TimeFormat::LEXICAL_DATE_FORMAT
static

LEXICAL_DATE_FORMAT: April 18, 2008.

Definition at line 161 of file DateTime.h.

Referenced by trUtil::DateTime::ToString().

◆ LOCAL_DATE_AND_TIME_FORMAT

const DateTime::TimeFormat trUtil::DateTime::TimeFormat::LOCAL_DATE_AND_TIME_FORMAT
static

LOCAL_DATE_AND_TIME_FORMAT: 04-18-08 13:22:50.

Definition at line 149 of file DateTime.h.

Referenced by trUtil::Logging::LogWriterFile::LogMessage(), trUtil::Logging::LogWriterFile::TimeTag(), and trUtil::DateTime::ToString().

◆ LOCAL_DATE_FORMAT

const DateTime::TimeFormat trUtil::DateTime::TimeFormat::LOCAL_DATE_FORMAT
static

LOCAL_DATE_FORMAT: 04/18/08.

Definition at line 152 of file DateTime.h.

Referenced by trUtil::DateTime::ToString().

◆ ORDINAL_DATE_FORMAT

const DateTime::TimeFormat trUtil::DateTime::TimeFormat::ORDINAL_DATE_FORMAT
static

ORDINAL_DATE_FORMAT: 2008-109.

Definition at line 167 of file DateTime.h.

Referenced by trUtil::DateTime::ToString().

◆ WEEK_DATE_FORMAT

const DateTime::TimeFormat trUtil::DateTime::TimeFormat::WEEK_DATE_FORMAT
static

WEEK_DATE_FORMAT: 2008-W15-5.

Definition at line 170 of file DateTime.h.

Referenced by trUtil::DateTime::ToString().


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