SNAP Library 6.0, Developer Reference
2020-12-09 16:24:20
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
|
#include <tm.h>
Public Member Functions | |
TTm () | |
TTm (const TTm &Tm) | |
TTm (const int &_Year, const int &_Month, const int &_Day, const int &_DayOfWeek=-1, const int &_Hour=0, const int &_Min=0, const int &_Sec=0, const int &_MSec=0) | |
TTm (const TSecTm &SecTm) | |
~TTm () | |
TTm (TSIn &SIn) | |
void | Save (TSOut &SOut) const |
TTm & | operator= (const TTm &Tm) |
bool | operator== (const TTm &Tm) const |
bool | operator< (const TTm &Tm) const |
int | GetMemUsed () const |
int | GetPrimHashCd () const |
int | GetSecHashCd () const |
bool | IsDef () const |
void | Undef () |
bool | IsTimeDef () const |
int | GetYear () const |
int | GetMonth () const |
TStr | GetMonthNm () const |
int | GetDay () const |
int | GetDayOfWeek () const |
TStr | GetDayOfWeekNm () const |
int | GetHour () const |
int | GetMin () const |
int | GetSec () const |
int | GetMSec () const |
TStr | GetStr (const bool &MSecP=true) const |
TStr | GetYMDDashStr () const |
TStr | GetHMSTColonDotStr (const bool &FullP=false, const bool &MSecP=true) const |
TStr | GetWebLogDateStr () const |
TStr | GetWebLogTimeStr () const |
TStr | GetWebLogDateTimeStr (const bool &FullP=false, const TStr &DateTimeSepCh=" ", const bool &MSecP=true) const |
TStr | GetIdStr () const |
TSecTm | GetSecTm () const |
void | AddTime (const int &Hours, const int &Mins=0, const int &Secs=0, const int &MSecs=0) |
void | AddDays (const int &Days) |
void | SubTime (const int &Hours, const int &Mins=0, const int &Secs=0, const int &MSecs=0) |
void | SubDays (const int &Days) |
Static Public Member Functions | |
static TTm | GetCurUniTm () |
static TTm | GetUniqueCurUniTm () |
static TTm | GetUniqueCurUniTm (const int &UniqueSpaces, const int &UniqueSpaceN) |
static TTm | GetCurLocTm () |
static uint64 | GetCurUniMSecs () |
static uint64 | GetCurLocMSecs () |
static uint64 | GetMSecsFromTm (const TTm &Tm) |
static TTm | GetTmFromMSecs (const uint64 &MSecs) |
static uint | GetMSecsFromOsStart () |
static uint64 | GetPerfTimerFq () |
static uint64 | GetPerfTimerTicks () |
static void | GetDiff (const TTm &Tm1, const TTm &Tm2, int &Days, int &Hours, int &Mins, int &Secs, int &MSecs) |
static uint64 | GetDiffMSecs (const TTm &Tm1, const TTm &Tm2) |
static uint64 | GetDiffSecs (const TTm &Tm1, const TTm &Tm2) |
static uint64 | GetDiffMins (const TTm &Tm1, const TTm &Tm2) |
static uint64 | GetDiffHrs (const TTm &Tm1, const TTm &Tm2) |
static uint64 | GetDiffDays (const TTm &Tm1, const TTm &Tm2) |
static TTm | GetLocTmFromUniTm (const TTm &Tm) |
static TTm | GetUniTmFromLocTm (const TTm &Tm) |
static TTm | GetTmFromWebLogTimeStr (const TStr &TimeStr, const char TimeSepCh=':', const char MSecSepCh='.') |
static TTm | GetTmFromWebLogDateTimeStr (const TStr &DateTimeStr, const char DateSepCh='-', const char TimeSepCh=':', const char MSecSepCh='.', const char DateTimeSepCh=' ') |
static TTm | GetTmFromIdStr (const TStr &IdStr) |
static uint | GetDateTimeInt (const int &Year=0, const int &Month=0, const int &Day=1, const int &Hour=0, const int &Min=0, const int &Sec=0) |
static uint | GetDateIntFromTm (const TTm &Tm) |
static uint | GetMonthIntFromTm (const TTm &Tm) |
static uint | GetYearIntFromTm (const TTm &Tm) |
static uint | GetDateTimeIntFromTm (const TTm &Tm) |
static TTm | GetTmFromDateTimeInt (const uint &DateTimeInt) |
static TSecTm | GetSecTmFromDateTimeInt (const uint &DateTimeInt) |
Private Attributes | |
TInt | Year |
TInt | Month |
TInt | Day |
TInt | DayOfWeek |
TInt | Hour |
TInt | Min |
TInt | Sec |
TInt | MSec |
|
inline |
Definition at line 218 of file tm.h.
Referenced by GetMemUsed(), GetTmFromDateTimeInt(), GetTmFromIdStr(), and GetTmFromWebLogDateTimeStr().
|
inline |
|
inline |
Definition at line 300 of file tm.h.
References AddTime().
void TTm::AddTime | ( | const int & | Hours, |
const int & | Mins = 0 , |
||
const int & | Secs = 0 , |
||
const int & | MSecs = 0 |
||
) |
Definition at line 1009 of file tm.cpp.
References GetMSecsFromTm(), and GetTmFromMSecs().
Referenced by AddDays(), and GetUniqueCurUniTm().
|
static |
|
static |
Definition at line 1060 of file tm.cpp.
Referenced by TLogNotify::OnStatus().
|
static |
|
static |
Definition at line 1029 of file tm.cpp.
Referenced by TFPathNotify::OnStatus(), and TFPathNotify::TFPathNotify().
Definition at line 1242 of file tm.cpp.
References GetDateTimeInt(), GetDay(), GetMonth(), GetYear(), and IsDef().
|
static |
Definition at line 1236 of file tm.cpp.
References TSecTm::GetAbsSecs().
Referenced by GetDateIntFromTm(), GetDateTimeIntFromTm(), GetMonthIntFromTm(), and GetYearIntFromTm().
Definition at line 1254 of file tm.cpp.
References GetDateTimeInt(), GetDay(), GetHour(), GetMin(), GetMonth(), GetSec(), GetYear(), and IsDef().
|
inline |
Definition at line 278 of file tm.h.
References Day.
Referenced by GetDateIntFromTm(), GetDateTimeIntFromTm(), and TFPathNotify::UpdateSOut().
|
inline |
|
inline |
Definition at line 280 of file tm.h.
References TTmInfo::GetDayOfWeekNm().
|
static |
Definition at line 1092 of file tm.cpp.
References GetDiffMSecs().
Definition at line 325 of file tm.h.
References GetDiffMSecs().
Definition at line 323 of file tm.h.
References GetDiffMSecs().
Definition at line 321 of file tm.h.
References GetDiffMSecs().
Definition at line 1107 of file tm.cpp.
References GetMSecsFromTm().
Referenced by GetDiff(), GetDiffDays(), GetDiffHrs(), GetDiffMins(), and GetDiffSecs().
Definition at line 319 of file tm.h.
References GetDiffMSecs().
TStr TTm::GetHMSTColonDotStr | ( | const bool & | FullP = false , |
const bool & | MSecP = true |
||
) | const |
Definition at line 983 of file tm.cpp.
References TInt::GetStr(), Hour, Min, MSec, and Sec.
Referenced by GetWebLogDateTimeStr(), GetWebLogTimeStr(), and TLogNotify::OnStatus().
|
inline |
Definition at line 281 of file tm.h.
References Hour.
Referenced by GetDateTimeIntFromTm(), TFPathNotify::OnStatus(), and TFPathNotify::UpdateSOut().
TStr TTm::GetIdStr | ( | ) | const |
|
inline |
|
inline |
|
inline |
Definition at line 276 of file tm.h.
References Month.
Referenced by GetDateIntFromTm(), GetDateTimeIntFromTm(), GetMonthIntFromTm(), and TFPathNotify::UpdateSOut().
Definition at line 1246 of file tm.cpp.
References GetDateTimeInt(), GetMonth(), GetYear(), and IsDef().
|
inline |
Definition at line 277 of file tm.h.
References TTmInfo::GetMonthNm().
|
inline |
|
static |
Definition at line 1072 of file tm.cpp.
Referenced by AddTime(), GetDiffMSecs(), and SubTime().
|
static |
|
static |
|
inline |
|
inline |
TStr TTm::GetStr | ( | const bool & | MSecP = true | ) | const |
Definition at line 1215 of file tm.cpp.
References IAssert, TChA::Ins(), TCh::IsNum(), TChA::Len(), and TTm().
Definition at line 1076 of file tm.cpp.
Referenced by AddTime(), GetUniqueCurUniTm(), and SubTime().
|
static |
Definition at line 1159 of file tm.cpp.
References TChA::Clr(), TStr::GetInt(), TStr::Len(), and TTm().
|
static |
Definition at line 1125 of file tm.cpp.
References TChA::Clr(), TStr::GetInt(), and TStr::Len().
|
static |
Definition at line 1033 of file tm.cpp.
References AddTime().
|
static |
Definition at line 1042 of file tm.cpp.
References Assert, and GetTmFromMSecs().
|
inline |
Definition at line 290 of file tm.h.
References GetYMDDashStr().
|
inline |
Definition at line 292 of file tm.h.
References GetHMSTColonDotStr(), and GetYMDDashStr().
|
inline |
Definition at line 291 of file tm.h.
References GetHMSTColonDotStr().
|
inline |
Definition at line 275 of file tm.h.
References Year.
Referenced by GetDateIntFromTm(), GetDateTimeIntFromTm(), GetMonthIntFromTm(), GetYearIntFromTm(), and TFPathNotify::UpdateSOut().
Definition at line 1250 of file tm.cpp.
References GetDateTimeInt(), GetYear(), and IsDef().
TStr TTm::GetYMDDashStr | ( | ) | const |
Definition at line 975 of file tm.cpp.
References Day, TInt::GetStr(), Month, and Year.
Referenced by GetWebLogDateStr(), GetWebLogDateTimeStr(), and TLogNotify::OnStatus().
|
inline |
Definition at line 265 of file tm.h.
Referenced by GetDateIntFromTm(), GetDateTimeIntFromTm(), GetMonthIntFromTm(), and GetYearIntFromTm().
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 237 of file tm.h.
References TInt::Save().
|
inline |
Definition at line 302 of file tm.h.
References SubTime().
void TTm::SubTime | ( | const int & | Hours, |
const int & | Mins = 0 , |
||
const int & | Secs = 0 , |
||
const int & | MSecs = 0 |
||
) |
Definition at line 1019 of file tm.cpp.
References GetMSecsFromTm(), and GetTmFromMSecs().
Referenced by SubDays().
|
private |
Definition at line 215 of file tm.h.
Referenced by GetDay(), GetIdStr(), GetSecHashCd(), GetStr(), GetYMDDashStr(), operator<(), operator=(), and operator==().
|
private |
Definition at line 215 of file tm.h.
Referenced by GetDayOfWeek(), and operator=().
|
private |
Definition at line 216 of file tm.h.
Referenced by GetHMSTColonDotStr(), GetHour(), GetIdStr(), GetStr(), operator<(), operator=(), and operator==().
|
private |
Definition at line 216 of file tm.h.
Referenced by GetHMSTColonDotStr(), GetIdStr(), GetMin(), GetStr(), operator<(), operator=(), and operator==().
|
private |
Definition at line 215 of file tm.h.
Referenced by GetIdStr(), GetMonth(), GetStr(), GetYMDDashStr(), operator<(), operator=(), and operator==().
|
private |
Definition at line 216 of file tm.h.
Referenced by GetHMSTColonDotStr(), GetIdStr(), GetMSec(), GetPrimHashCd(), GetStr(), operator<(), operator=(), and operator==().
|
private |
Definition at line 216 of file tm.h.
Referenced by GetHMSTColonDotStr(), GetIdStr(), GetSec(), GetStr(), operator<(), operator=(), and operator==().
|
private |
Definition at line 215 of file tm.h.
Referenced by GetIdStr(), GetStr(), GetYear(), GetYMDDashStr(), operator<(), operator=(), and operator==().