![]() |
KSquare Utilities
|
#include <DateTime.h>
Public Member Functions | |
| DateTime () | |
| DateTime (const DateTime &dateTime) | |
| DateTime (const DateType &_date, const TimeType &_time) | |
| DateTime (short _year, uchar _month, uchar _day, uchar _hour, uchar _minute, uchar _second) | |
| DateTime (const KKStr &s) | |
| void | AddDays (kkint32 _days) |
| void | AddHours (kkint32 _hours) |
| void | AddMinutes (kkint32 _mins) |
| void | AddSeconds (long _secs) |
| const KKB::DateType & | Date () const |
| uchar | Day () const |
| KKStr | HH_MM_SS () const |
| void | HoursAdd (kkint32 hours) |
| Add _hours to DateTime, will adjust date to accommodate 24 hour clock. More... | |
| void | MinutesAdd (kkint32 _mins) |
| uchar | Month () const |
| bool | operator!= (const DateTime &right) const |
| DateTime | operator+ (const DateTime &right) const |
| DateTime | operator- (const DateTime &right) const |
| bool | operator< (const DateTime &right) const |
| bool | operator<= (const DateTime &right) const |
| DateTime & | operator= (const DateTime &right) |
| bool | operator== (const DateTime &right) const |
| bool | operator> (const DateTime &right) const |
| bool | operator>= (const DateTime &right) const |
| kkuint64 | Seconds () const |
| void | SecondsAdd (long _secs) |
| const TimeType & | Time () const |
| kkuint32 | ToDays () const |
| double | ToHours () const |
| summary>Number seconds since "0000/01/01 00:00:00" More... | |
| kkuint64 | ToSeconds () const |
| short | Year () const |
| KKStr | YYYY_MM_DD_HH_MM_SS () const |
| KKStr | YYYYMMDDHHMMSS () const |
Definition at line 204 of file DateTime.h.
| DateTime::DateTime | ( | ) |
Definition at line 997 of file DateTime.cpp.
References KKB::DateType::DateType(), and KKB::TimeType::TimeType().
Referenced by KKB::XmlAttributeList::AttributeValueDateTime(), KKMLL::ClassificationBiasMatrix::ClassificationBiasMatrix(), KKMLL::FeatureFileIO::FeatureDataReSink(), and KKB::XmlElementDateTime::XmlElementDateTime().
| DateTime::DateTime | ( | const DateTime & | dateTime | ) |
Definition at line 1006 of file DateTime.cpp.
References KKB::DateType::DateType(), and KKB::TimeType::TimeType().
Referenced by KKMLL::ClassificationBiasMatrix::ClassificationBiasMatrix(), and KKJobManagment::KKJobManager::KKJobManager().
Definition at line 1016 of file DateTime.cpp.
References KKB::DateType::DateType(), and KKB::TimeType::TimeType().
Referenced by operator+(), and operator-().
| DateTime::DateTime | ( | short | _year, |
| uchar | _month, | ||
| uchar | _day, | ||
| uchar | _hour, | ||
| uchar | _minute, | ||
| uchar | _second | ||
| ) |
Definition at line 1028 of file DateTime.cpp.
References KKB::DateType::DateType(), and KKB::TimeType::TimeType().
Referenced by KKMLL::TrainingProcess2::TrainingProcess2().
| DateTime::DateTime | ( | const KKStr & | s | ) |
Definition at line 1043 of file DateTime.cpp.
References KKB::KKStr::Concat(), KKB::KKStr::CountInstancesOf(), KKB::DateType::DateType(), KKB::KKStr::Empty(), KKB::KKStrParser::GetNextToken(), KKB::KKStrParser::GetRestOfStr(), KKB::KKStrParser::KKStrParser(), KKB::KKStr::operator+(), KKB::DateType::operator=(), KKB::TimeType::operator=(), and KKB::TimeType::TimeType().
Referenced by KKB::XmlAttributeList::AttributeValueDateTime(), KKB::KKStrParser::GetNextTokenDateTime(), and KKJobManagment::KKJobManager::StatusFileProcessLine().
| void DateTime::AddDays | ( | kkint32 | _days | ) |
| void DateTime::AddHours | ( | kkint32 | _hours | ) |
Definition at line 1114 of file DateTime.cpp.
References KKB::TimeType::Hour(), KKB::DateType::operator+(), KKB::DateType::operator-(), and KKB::DateType::operator=().
Referenced by HoursAdd().
| void DateTime::AddMinutes | ( | kkint32 | _mins | ) |
Definition at line 1139 of file DateTime.cpp.
References HoursAdd(), and KKB::TimeType::Minute().
Referenced by MinutesAdd().
| void DateTime::AddSeconds | ( | long | _secs | ) |
Definition at line 1159 of file DateTime.cpp.
References MinutesAdd(), and KKB::TimeType::Second().
Referenced by SecondsAdd().
|
inline |
|
inline |
| KKStr DateTime::HH_MM_SS | ( | ) | const |
The date part will be converted into hours.
Definition at line 1222 of file DateTime.cpp.
References KKB::TimeType::Hour(), KKB::TimeType::Minute(), KKB::KKStr::operator+(), KKB::TimeType::Second(), KKB::StrFormatInt(), and KKB::DateType::ToHours().
| void DateTime::HoursAdd | ( | kkint32 | hours | ) |
Add _hours to DateTime, will adjust date to accommodate 24 hour clock.
Definition at line 1186 of file DateTime.cpp.
References AddHours().
Referenced by AddMinutes().
| void DateTime::MinutesAdd | ( | kkint32 | _mins | ) |
|
inline |
| bool DateTime::operator!= | ( | const DateTime & | right | ) | const |
Definition at line 1248 of file DateTime.cpp.
Definition at line 1281 of file DateTime.cpp.
References DateTime(), KKB::DateType::DateType(), KKB::DateType::Days(), KKB::TimeType::Seconds(), and KKB::TimeType::TimeType().
Definition at line 1293 of file DateTime.cpp.
References DateTime(), KKB::DateType::DateType(), KKB::DateType::Days(), KKB::TimeType::Seconds(), and KKB::TimeType::TimeType().
| bool DateTime::operator< | ( | const DateTime & | right | ) | const |
Definition at line 1268 of file DateTime.cpp.
Referenced by KKMLL::TrainingProcess2::CreateTrainingProcess().
| bool DateTime::operator<= | ( | const DateTime & | right | ) | const |
Definition at line 1274 of file DateTime.cpp.
Definition at line 1231 of file DateTime.cpp.
References KKB::DateType::operator=(), and KKB::TimeType::operator=().
Referenced by KKMLL::TrainingProcess2::CreateModelsFromTrainingData(), KKMLL::TrainingProcess2::ExtractTrainingClassFeatures(), KKMLL::FeatureFileIO::FeatureDataReSink(), KKMLL::TrainingConfiguration2::LoadFeatureDataFromTrainingLibraries(), KKMLL::TrainingProcess2::ReadXML(), KKJobManagment::KKJobManager::StatusFileProcessLine(), and KKB::XmlElementDateTime::XmlElementDateTime().
| bool DateTime::operator== | ( | const DateTime & | right | ) | const |
Definition at line 1241 of file DateTime.cpp.
| bool DateTime::operator> | ( | const DateTime & | right | ) | const |
Definition at line 1255 of file DateTime.cpp.
Referenced by KKMLL::TrainingProcess2::ExtractTrainingClassFeatures(), and KKMLL::TrainingConfiguration2::LoadFeatureDataFromTrainingLibraries().
| bool DateTime::operator>= | ( | const DateTime & | right | ) | const |
Definition at line 1262 of file DateTime.cpp.
| kkuint64 DateTime::Seconds | ( | ) | const |
Definition at line 1092 of file DateTime.cpp.
References KKB::DateType::Seconds(), and KKB::TimeType::Seconds().
Referenced by KKB::XmlElementDateTime::ToBool(), KKB::XmlElementDateTime::ToDouble(), KKB::XmlElementDateTime::ToFloat(), and KKB::KKThread::WaitForThreadToStop().
| void DateTime::SecondsAdd | ( | long | _secs | ) |
|
inline |
Definition at line 232 of file DateTime.h.
Referenced by KKB::KKThread::AddMsg(), and KKB::operator<<().
| kkuint32 DateTime::ToDays | ( | ) | const |
Definition at line 1100 of file DateTime.cpp.
References KKB::DateType::Days().
Referenced by KKB::XmlElementDateTime::ToInt32().
| double DateTime::ToHours | ( | ) | const |
summary>Number seconds since "0000/01/01 00:00:00"
Definition at line 1101 of file DateTime.cpp.
References KKB::DateType::Days(), and KKB::TimeType::ToHours().
| kkuint64 DateTime::ToSeconds | ( | ) | const |
Number seconds since "0000/01/01 00:00:00"
Definition at line 1105 of file DateTime.cpp.
References KKB::DateType::Days(), and KKB::TimeType::Seconds().
|
inline |
| KKStr DateTime::YYYY_MM_DD_HH_MM_SS | ( | ) | const |
Definition at line 1216 of file DateTime.cpp.
References KKB::TimeType::HH_MM_SS(), KKB::KKStr::operator+(), and KKB::DateType::YYYY_MM_DD().
Referenced by KKB::XmlElementKeyValuePairs::Add(), KKB::XmlElementDateTime::ToKKStr(), KKMLL::Model::WriteModelXMLFields(), and KKB::XmlElementDateTime::WriteXML().
| KKStr DateTime::YYYYMMDDHHMMSS | ( | ) | const |
Definition at line 1209 of file DateTime.cpp.
References KKB::TimeType::HHMMSS(), KKB::KKStr::operator+(), and KKB::DateType::YYYYMMDD().