top | up | prev | next

DateTime Class

Definition at line 82 of Time.hpp

Constructors

DateTime()
DateTime(Date date_)
DateTime(Date date_, int32_t secs_)

Member Functions

Date GetDate() const
int32_t Hours() const
int32_t Minutes() const
int32_t Seconds() const
std::string ToString() const
std::string ToString(bool omitDashes, bool omitColons, bool omitMins, bool omitSecs) const

Member Variables

Date date
int32_t secs

Constructor Details

DateTime Constructor

soulng::util::DateTime::DateTime()

Definition at line 85 of Time.hpp :
 85 : date()secs(0)
 86 {
 87 }



DateTime Constructor

soulng::util::DateTime::DateTime(Date date_)

Definition at line 88 of Time.hpp :
 88 : date(date_)secs(0)
 89 {
 90 }



DateTime Constructor

soulng::util::DateTime::DateTime(Date date_, int32_t secs_)

Definition at line 91 of Time.hpp :
 91 : date(date_)secs(secs_)
 92 {
 93 }



Member Function Details

GetDate Member Function

Date soulng::util::DateTime::GetDate() const

Definition at line 94 of Time.hpp :
 95 {
 96     return date;
 97 }


Called by: soulng::util::MemoryWriter::Write , soulng::util::TimestampProvider::GetCurrentTimestamp


Hours Member Function

int32_t soulng::util::DateTime::Hours() const

Definition at line 98 of Time.hpp :
 99 {
100     return secs / 3600;
101 }


Called by: soulng::util::DateTime::ToString


Minutes Member Function

int32_t soulng::util::DateTime::Minutes() const

Definition at line 102 of Time.hpp :
103 {
104     return secs / 60;
105 }


Called by: soulng::util::DateTime::ToString


Seconds Member Function

int32_t soulng::util::DateTime::Seconds() const

Definition at line 106 of Time.hpp :
107 {
108     return secs;
109 }


Called by: soulng::util::DateTime::ToString , soulng::util::MemoryWriter::Write , soulng::util::TimestampProvider::GetCurrentTimestamp


ToString Member Function

std::string soulng::util::DateTime::ToString() const

Definition at line 241 of Time.cpp :
242 {
243     return ToString(falsefalsefalsefalse);
244 }


Declaration at line 110 of Time.hpp

Calls: soulng::util::DateTime::ToString

Called by: soulng::util::LogFileWriter::WriteCurrentDateTime , soulng::util::Timestamp::ToString


ToString Member Function

std::string soulng::util::DateTime::ToString(bool omitDashes, bool omitColons, bool omitMins, bool omitSecs) const

Definition at line 246 of Time.cpp
Declaration at line 111 of Time.hpp

Calls: soulng::util::Date::ToString , soulng::util::DateTime::Hours , soulng::util::DateTime::Minutes , soulng::util::DateTime::Seconds

Called by: soulng::util::DateTime::ToString


top | up | prev | next