SNAP Library 6.0, User 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 | |
TSecTm () | |
TSecTm (const uint &_AbsSecs) | |
operator uint () const | |
TSecTm (const TSecTm &SecTm) | |
TSecTm (const int &YearN, const int &MonthN, const int &DayN, const int &HourN=0, const int &MinN=0, const int &SecN=0) | |
TSecTm (const TTm &Tm) | |
TSecTm (const PXmlTok &XmlTok) | |
PXmlTok | GetXmlTok () const |
TSecTm (TSIn &SIn) | |
void | Load (TSIn &SIn) |
void | Save (TSOut &SOut) const |
TSecTm & | operator= (const TSecTm &SecTm) |
TSecTm & | operator= (const uint &_AbsSecs) |
TSecTm & | operator+= (const uint &Secs) |
TSecTm & | operator-= (const uint &Secs) |
bool | operator== (const TSecTm &SecTm) const |
bool | operator< (const TSecTm &SecTm) const |
int | GetMemUsed () const |
int | GetPrimHashCd () const |
int | GetSecHashCd () const |
bool | IsDef () const |
void | Undef () |
TStr | GetStr (const TLoc &Loc=lUs) const |
TStr | GetStr (const TTmUnit &TmUnit) const |
TStr | GetDtStr (const TLoc &Loc=lUs) const |
TStr | GetDtMdyStr () const |
TStr | GetDtYmdStr () const |
TStr | GetYmdTmStr () const |
TStr | GetYmdTmStr2 () const |
TStr | GetTmStr () const |
TStr | GetTmMinStr () const |
TStr | GetDtTmSortStr () const |
TStr | GetDtTmSortFNmStr () const |
int | GetYearN () const |
int | GetMonthN () const |
TStr | GetMonthNm (const TLoc &Loc=lUs) const |
int | GetDayN () const |
int | GetDayOfWeekN () const |
TStr | GetDayOfWeekNm (const TLoc &Loc=lUs) const |
int | GetHourN () const |
int | GetMinN () const |
int | GetSecN () const |
void | GetComps (int &Year, int &Month, int &Day, int &Hour, int &Min, int &Sec) const |
uint | GetAbsSecs () const |
TSecTm | Round (const TTmUnit &TmUnit) const |
uint | GetInUnits (const TTmUnit &TmUnit) const |
TStr | GetDayPart () const |
TSecTm & | AddSecs (const int &Secs) |
TSecTm & | SubSecs (const int &Secs) |
TSecTm & | AddMins (const int &Mins) |
TSecTm & | SubMins (const int &Mins) |
TSecTm & | AddHours (const int &Hours) |
TSecTm & | SubHours (const int &Hours) |
TSecTm & | AddDays (const int &Days) |
TSecTm & | SubDays (const int &Days) |
TSecTm & | AddWeeks (const int &Weeks) |
TSecTm & | SubWeeks (const int &Weeks) |
void | SaveTxt (TOLx &Lx) const |
Static Public Member Functions | |
static uint | GetDSecs (const TSecTm &SecTm1, const TSecTm &SecTm2) |
static TSecTm | GetZeroTm () |
static TSecTm | GetZeroWeekTm () |
static TSecTm | GetCurTm () |
static TSecTm | GetCurDtTm () |
static TSecTm | GetDtTmFromHmsStr (const TStr &HmsStr) |
static TSecTm | GetDtTmFromMdyStr (const TStr &MdyStr) |
static TSecTm | GetDtTmFromDmyStr (const TStr &DmyStr) |
static TSecTm | GetDtTmFromMdyHmsPmStr (const TStr &MdyHmsPmStr, const char &DateSepCh='/', const char &TimeSepCh=':') |
static TSecTm | GetDtTmFromYmdHmsStr (const TStr &YmdHmsPmStr, const char &DateSepCh='-', const char &TimeSepCh=':') |
static TSecTm | GetDtTmFromStr (const TChA &YmdHmsPmStr, const int &YearId=0, const int &MonId=1, const int &DayId=2, const int &HourId=3, const int &MinId=4, const int &SecId=5) |
static TSecTm | GetDtTm (const int &YearN, const int &MonthN, const int &DayN) |
static TSecTm | GetDtTm (const TSecTm &Tm) |
static TSecTm | LoadTxt (TILx &Lx) |
Static Private Member Functions | |
static bool | GetTmSec (const int &YearN, const int &MonthN, const int &DayN, const int &HourN, const int &MinN, const int &SecN, uint &AbsSec) |
static bool | GetTmSec (struct tm &Tm, uint &AbsSec) |
static bool | GetTmStruct (const uint &AbsSec, struct tm &Tm) |
static time_t | MkGmTime (struct tm *t) |
Private Attributes | |
TUInt | AbsSecs |
|
inline |
|
inline |
TSecTm::TSecTm | ( | const int & | YearN, |
const int & | MonthN, | ||
const int & | DayN, | ||
const int & | HourN = 0 , |
||
const int & | MinN = 0 , |
||
const int & | SecN = 0 |
||
) |
Definition at line 427 of file tm.cpp.
void TSecTm::GetComps | ( | int & | Year, |
int & | Month, | ||
int & | Day, | ||
int & | Hour, | ||
int & | Min, | ||
int & | Sec | ||
) | const |
|
inlinestatic |
Definition at line 190 of file tm.h.
|
static |
Definition at line 697 of file tm.cpp.
|
static |
Definition at line 938 of file tm.cpp.
Definition at line 766 of file tm.cpp.
|
static |
Definition at line 800 of file tm.cpp.
Definition at line 738 of file tm.cpp.
|
static |
|
static |
Definition at line 859 of file tm.cpp.
Definition at line 650 of file tm.cpp.
|
staticprivate |
Definition at line 363 of file tm.cpp.
|
staticprivate |
|
staticprivate |
TStr TSecTm::GetYmdTmStr | ( | ) | const |
TStr TSecTm::GetYmdTmStr2 | ( | ) | const |
|
inline |
|
inline |
|
inline |
Definition at line 625 of file tm.cpp.
void TSecTm::SaveTxt | ( | TOLx & | Lx | ) | const |
|
inline |
|
inline |
|
inline |