SNAP Library 4.1, Developer Reference  2018-07-26 16:30:42
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TTmInfo Class Reference

#include <tm.h>

Collaboration diagram for TTmInfo:

Static Public Member Functions

static int GetMonthN (const TStr &MonthNm, const TLoc &Loc=lUs)
 
static bool IsMonthNm (const TStr &MonthNm, const TLoc &Loc=lUs)
 
static TStr GetMonthNm (const int &MonthN, const TLoc &Loc=lUs)
 
static int GetDayOfWeekN (const TStr &DayOfWeekNm, const TLoc &Loc=lUs)
 
static bool IsDayOfWeekNm (const TStr &DayOfWeekNm, const TLoc &Loc=lUs)
 
static TStr GetDayOfWeekNm (const int &DayOfWeekN, const TLoc &Loc=lUs)
 
static TStr GetHmFromMins (const int &Mins)
 
static int GetTmUnitSecs (const TTmUnit &TmUnit)
 
static TStr GetTmUnitStr (const TTmUnit &TmUnit)
 
static TStr GetTmZoneDiffStr (const TStr &TmZoneStr)
 
static uint64 GetMinMSecs ()
 
static uint64 GetHourMSecs ()
 
static uint64 GetDayMSecs ()
 
static uint64 GetWeekMSecs ()
 

Static Public Attributes

static const int SunN =1
 
static const int MonN =2
 
static const int TueN =3
 
static const int WedN =4
 
static const int ThuN =5
 
static const int FriN =6
 
static const int SatN =7
 
static const int JanN =1
 
static const int FebN =2
 
static const int MarN =3
 
static const int AprN =4
 
static const int MayN =5
 
static const int JunN =6
 
static const int JulN =7
 
static const int AugN =8
 
static const int SepN =9
 
static const int OctN =10
 
static const int NovN =11
 
static const int DecN =12
 

Static Private Member Functions

static void InitMonthNmV ()
 
static void InitDayOfWeekNmV ()
 
static void EnsureInit ()
 

Static Private Attributes

static bool InitP =false
 
static TStrV UsMonthNmV
 
static TStrV SiMonthNmV
 
static TStrV UsDayOfWeekNmV
 
static TStrV SiDayOfWeekNmV
 

Detailed Description

Definition at line 21 of file tm.h.

Member Function Documentation

static void TTmInfo::EnsureInit ( )
inlinestaticprivate

Definition at line 30 of file tm.h.

References InitDayOfWeekNmV(), InitMonthNmV(), and InitP.

Referenced by GetDayOfWeekN(), GetDayOfWeekNm(), GetMonthN(), and GetMonthNm().

30  {
31  if (!InitP){InitMonthNmV(); InitDayOfWeekNmV(); InitP=true;}}
static void InitDayOfWeekNmV()
Definition: tm.cpp:24
static void InitMonthNmV()
Definition: tm.cpp:9
static bool InitP
Definition: tm.h:23

Here is the call graph for this function:

Here is the caller graph for this function:

static uint64 TTmInfo::GetDayMSecs ( )
inlinestatic

Definition at line 63 of file tm.h.

63 {return 24*60*60*1000;}
int TTmInfo::GetDayOfWeekN ( const TStr DayOfWeekNm,
const TLoc Loc = lUs 
)
static

Definition at line 60 of file tm.cpp.

References EnsureInit(), Fail, TStr::GetLc(), lSi, lUs, TVec< TVal, TSizeTy >::SearchForw(), SiDayOfWeekNmV, and UsDayOfWeekNmV.

Referenced by IsDayOfWeekNm().

60  {
61  EnsureInit();
62  int DayOfWeekN=-1;
63  switch (Loc){
64  case lUs: DayOfWeekN=UsDayOfWeekNmV.SearchForw(DayOfWeekNm.GetLc()); break;
65  case lSi: DayOfWeekN=SiDayOfWeekNmV.SearchForw(DayOfWeekNm.GetLc()); break;
66  default: Fail;
67  }
68  if (DayOfWeekN==-1){return -1;} else {return DayOfWeekN+1;}
69 }
static TStrV SiDayOfWeekNmV
Definition: tm.h:27
static void EnsureInit()
Definition: tm.h:30
#define Fail
Definition: bd.h:238
Definition: bd.h:63
TStr GetLc() const
Definition: dt.h:499
static TStrV UsDayOfWeekNmV
Definition: tm.h:26
TSizeTy SearchForw(const TVal &Val, const TSizeTy &BValN=0) const
Returns the position of an element with value Val.
Definition: ds.h:1552
Definition: bd.h:63

Here is the call graph for this function:

Here is the caller graph for this function:

TStr TTmInfo::GetDayOfWeekNm ( const int &  DayOfWeekN,
const TLoc Loc = lUs 
)
static

Definition at line 71 of file tm.cpp.

References EnsureInit(), Fail, IAssert, lSi, lUs, SiDayOfWeekNmV, and UsDayOfWeekNmV.

Referenced by TSecTm::GetDayOfWeekNm(), TTm::GetDayOfWeekNm(), TSecTm::GetDtStr(), and TSecTm::GetStr().

71  {
72  EnsureInit();
73  IAssert((1<=DayOfWeekN)&&(DayOfWeekN<=7));
74  switch (Loc){
75  case lUs: return UsDayOfWeekNmV[DayOfWeekN-1];
76  case lSi: return SiDayOfWeekNmV[DayOfWeekN-1];
77  default: Fail; return TStr();
78  }
79 }
#define IAssert(Cond)
Definition: bd.h:262
static TStrV SiDayOfWeekNmV
Definition: tm.h:27
static void EnsureInit()
Definition: tm.h:30
#define Fail
Definition: bd.h:238
Definition: bd.h:63
static TStrV UsDayOfWeekNmV
Definition: tm.h:26
Definition: dt.h:412
Definition: bd.h:63

Here is the call graph for this function:

Here is the caller graph for this function:

TStr TTmInfo::GetHmFromMins ( const int &  Mins)
static

Definition at line 81 of file tm.cpp.

References TInt::GetStr().

81  {
82  return TInt::GetStr(Mins/60, "%02d")+":"+TInt::GetStr(Mins%60, "%02d");
83 }
TStr GetStr() const
Definition: dt.h:1197

Here is the call graph for this function:

static uint64 TTmInfo::GetHourMSecs ( )
inlinestatic

Definition at line 62 of file tm.h.

62 {return 60*60*1000;}
static uint64 TTmInfo::GetMinMSecs ( )
inlinestatic

Definition at line 61 of file tm.h.

61 {return 60*1000;}
int TTmInfo::GetMonthN ( const TStr MonthNm,
const TLoc Loc = lUs 
)
static

Definition at line 39 of file tm.cpp.

References EnsureInit(), Fail, TStr::GetLc(), lSi, lUs, TVec< TVal, TSizeTy >::SearchForw(), SiMonthNmV, and UsMonthNmV.

Referenced by TSecTm::GetDtTmFromDmyStr(), IsMonthNm(), and TTimeNet::LoadAmazon().

39  {
40  EnsureInit();
41  int MonthN=-1;
42  switch (Loc){
43  case lUs: MonthN=UsMonthNmV.SearchForw(MonthNm.GetLc()); break;
44  case lSi: MonthN=SiMonthNmV.SearchForw(MonthNm.GetLc()); break;
45  default: Fail;
46  }
47  if (MonthN==-1){return -1;} else {return MonthN+1;}
48 }
static TStrV UsMonthNmV
Definition: tm.h:24
static void EnsureInit()
Definition: tm.h:30
#define Fail
Definition: bd.h:238
Definition: bd.h:63
TStr GetLc() const
Definition: dt.h:499
static TStrV SiMonthNmV
Definition: tm.h:25
TSizeTy SearchForw(const TVal &Val, const TSizeTy &BValN=0) const
Returns the position of an element with value Val.
Definition: ds.h:1552
Definition: bd.h:63

Here is the call graph for this function:

Here is the caller graph for this function:

TStr TTmInfo::GetMonthNm ( const int &  MonthN,
const TLoc Loc = lUs 
)
static

Definition at line 50 of file tm.cpp.

References EnsureInit(), Fail, IAssert, lSi, lUs, SiMonthNmV, and UsMonthNmV.

Referenced by TSecTm::GetDtStr(), TSecTm::GetMonthNm(), TTm::GetMonthNm(), and TSecTm::GetStr().

50  {
51  EnsureInit();
52  IAssert((1<=MonthN)&&(MonthN<=12));
53  switch (Loc){
54  case lUs: return UsMonthNmV[MonthN-1];
55  case lSi: return SiMonthNmV[MonthN-1];
56  default: Fail; return TStr();
57  }
58 }
#define IAssert(Cond)
Definition: bd.h:262
static TStrV UsMonthNmV
Definition: tm.h:24
static void EnsureInit()
Definition: tm.h:30
#define Fail
Definition: bd.h:238
Definition: bd.h:63
static TStrV SiMonthNmV
Definition: tm.h:25
Definition: dt.h:412
Definition: bd.h:63

Here is the call graph for this function:

Here is the caller graph for this function:

int TTmInfo::GetTmUnitSecs ( const TTmUnit TmUnit)
static

Definition at line 85 of file tm.cpp.

References Fail, tmu10Min, tmu12Hour, tmu15Min, tmu1Hour, tmu1Min, tmu1Sec, tmu2Hour, tmu30Min, tmu4Hour, tmu6Hour, tmuDay, tmuEdges, tmuMonth, tmuNodes, tmuWeek, and tmuYear.

85  {
86  switch(TmUnit) {
87  case tmuYear : return 365*24*3600;
88  case tmuMonth : return 31*24*3600;
89  case tmuWeek : return 7*24*3600;
90  case tmuDay : return 24*3600;
91  case tmu12Hour : return 12*3600;
92  case tmu6Hour : return 6*3600;
93  case tmu4Hour : return 4*3600;
94  case tmu2Hour : return 2*3600;
95  case tmu1Hour : return 1*3600;
96  case tmu30Min : return 30*60;
97  case tmu15Min : return 15*60;
98  case tmu10Min : return 10*60;
99  case tmu1Min : return 60;
100  case tmu1Sec : return 1;
101  case tmuNodes : Fail;
102  case tmuEdges : Fail;
103  default: Fail;
104  }
105  return -1;
106 }
Definition: tm.h:13
Definition: tm.h:13
Definition: tm.h:12
#define Fail
Definition: bd.h:238
Definition: tm.h:14
Definition: tm.h:13
Definition: tm.h:13
Definition: tm.h:12
Definition: tm.h:12
Definition: tm.h:13
Definition: tm.h:14
Definition: tm.h:14
Definition: tm.h:12
Definition: tm.h:12
Definition: tm.h:13
Definition: tm.h:14
Definition: tm.h:13
TStr TTmInfo::GetTmUnitStr ( const TTmUnit TmUnit)
static

Definition at line 108 of file tm.cpp.

References Fail, TStr::GetNullStr(), tmu10Min, tmu12Hour, tmu15Min, tmu1Hour, tmu1Min, tmu1Sec, tmu2Hour, tmu30Min, tmu4Hour, tmu6Hour, tmuDay, tmuEdges, tmuMonth, tmuNodes, tmuWeek, and tmuYear.

Referenced by TTimeNet::PlotCCfOverTm(), TTimeNet::PlotEffDiam(), TTimeNENet::PlotEffDiam(), TTimeNet::PlotMedianDegOverTm(), TTimeNet::PlotMissingPast(), TTimeNENet::PlotMissingPast(), and TGStatVec::SaveTxt().

108  {
109  switch(TmUnit) {
110  case tmuYear : return "Year";
111  case tmuMonth : return "Month";
112  case tmuWeek : return "Week";
113  case tmuDay : return "Day";
114  case tmu12Hour : return "12 Hours";
115  case tmu6Hour : return "6 Hours";
116  case tmu4Hour : return "4 Hours";
117  case tmu2Hour : return "2 Hours";
118  case tmu1Hour : return "1 Hour";
119  case tmu30Min : return "30 Minutes";
120  case tmu15Min : return "15 Minutes";
121  case tmu10Min : return "10 Minutes";
122  case tmu1Min : return "Minute";
123  case tmu1Sec : return "Second";
124  case tmuNodes : return "Nodes";
125  case tmuEdges : return "Edges";
126  default: Fail;
127  }
128  return TStr::GetNullStr();
129 }
Definition: tm.h:13
Definition: tm.h:13
Definition: tm.h:12
#define Fail
Definition: bd.h:238
Definition: tm.h:14
Definition: tm.h:13
Definition: tm.h:13
Definition: tm.h:12
Definition: tm.h:12
Definition: tm.h:13
Definition: tm.h:14
Definition: tm.h:14
static TStr GetNullStr()
Definition: dt.cpp:1626
Definition: tm.h:12
Definition: tm.h:12
Definition: tm.h:13
Definition: tm.h:14
Definition: tm.h:13

Here is the call graph for this function:

Here is the caller graph for this function:

TStr TTmInfo::GetTmZoneDiffStr ( const TStr TmZoneStr)
static

Definition at line 131 of file tm.cpp.

131  {
132  if (TmZoneStr=="A"){/* Alpha Time Zone Military*/ return "+1000";}
133  if (TmZoneStr=="ACDT"){/* Australian Central Daylight Time Australia */ return "+1030";}
134  if (TmZoneStr=="ACST"){/* Australian Central Standard Time Australia */ return "+0930";}
135  if (TmZoneStr=="ADT"){/* Atlantic Daylight Time North America */ return "-0300";}
136  if (TmZoneStr=="AEDT"){/* Australian Eastern Daylight Time or Australian Eastern Summer Time Australia */ return "+1100";}
137  if (TmZoneStr=="AEST"){/* Australian Eastern Standard Time Australia */ return "+1000";}
138  if (TmZoneStr=="AKDT"){/* Alaska Daylight Time North America */ return "-0800";}
139  if (TmZoneStr=="AKST"){/* Alaska Standard Time North America */ return "-0900";}
140  if (TmZoneStr=="AST"){/* Atlantic Standard Time North America */ return "-0400";}
141  if (TmZoneStr=="AWDT"){/* Australian Western Daylight Time Australia */ return "+0900";}
142  if (TmZoneStr=="AWST"){/* Australian Western Standard Time Australia */ return "+0800";}
143  if (TmZoneStr=="B"){/* Bravo Time Zone Military */ return "+0200";}
144  if (TmZoneStr=="BST"){/* British Summer Time Europe */ return "+0100";}
145  if (TmZoneStr=="C"){/* Charlie Time Zone Military */ return "+0300";}
146  if (TmZoneStr=="CDT"){/* Central Daylight Time North America */ return "-0500";}
147  if (TmZoneStr=="CDT"){/* Central Daylight Time Australia */ return "+1030";}
148  if (TmZoneStr=="CEDT"){/* Central European Daylight Time Europe */ return "+0200";}
149  if (TmZoneStr=="CEST"){/* Central European Summer Time Europe */ return "+0200";}
150  if (TmZoneStr=="CET"){/* Central European Time Europe */ return "+0100";}
151  if (TmZoneStr=="CST"){/* Central Standard Time North America */ return "-0600";}
152  if (TmZoneStr=="CST"){/* Central Summer Time Australia */ return "+1030";}
153  if (TmZoneStr=="CST"){/* Central Standard Time Australia */ return "+0930";}
154  if (TmZoneStr=="CXT"){/* Christmas Island Time Australia */ return "+0700";}
155  if (TmZoneStr=="D"){/* Delta Time Zone Military */ return "+0400";}
156  if (TmZoneStr=="E"){/* Echo Time Zone Military */ return "+0500";}
157  if (TmZoneStr=="EDT"){/* Eastern Daylight Time North America */ return "-0400";}
158  if (TmZoneStr=="EDT"){/* Eastern Daylight Time Australia */ return "+1100";}
159  if (TmZoneStr=="EEDT"){/* Eastern European Daylight Time Europe */ return "+0300";}
160  if (TmZoneStr=="EEST"){/* Eastern European Summer Time Europe */ return "+0300";}
161  if (TmZoneStr=="EET"){/* Eastern European Time Europe */ return "+0200";}
162  if (TmZoneStr=="EST"){/* Eastern Standard Time North America */ return "-0500";}
163  if (TmZoneStr=="EST"){/* Eastern Summer Time Australia */ return "+1100";}
164  if (TmZoneStr=="EST"){/* Eastern Standard Time Australia */ return "+1000";}
165  if (TmZoneStr=="F"){/* Foxtrot Time Zone Military */ return "+0600";}
166  if (TmZoneStr=="G"){/* Golf Time Zone Military */ return "+0700";}
167  if (TmZoneStr=="GMT"){/* Greenwich Mean Time Europe */ return "+0000";}
168  if (TmZoneStr=="H"){/* Hotel Time Zone Military */ return "+0800";}
169  if (TmZoneStr=="HAA"){/* Heure Avancee de l'Atlantique North America */ return "-0300";}
170  if (TmZoneStr=="HAC"){/* Heure Avancee du Centre North America */ return "-0500";}
171  if (TmZoneStr=="HADT"){/* Hawaii-Aleutian Daylight Time North America */ return "-0900";}
172  if (TmZoneStr=="HAE"){/* Heure Avancee de l'Est North America */ return "-0400";}
173  if (TmZoneStr=="HAP"){/* Heure Avancee du Pacifique North America */ return "-0700";}
174  if (TmZoneStr=="HAR"){/* Heure Avancee des Rocheuses North America */ return "-0600";}
175  if (TmZoneStr=="HAST"){/* Hawaii-Aleutian Standard Time North America */ return "-1000";}
176  if (TmZoneStr=="HAT"){/* Heure Avancee de Terre-Neuve North America */ return "-0230";}
177  if (TmZoneStr=="HAY"){/* Heure Avancee du Yukon North America */ return "-0800";}
178  if (TmZoneStr=="HNA"){/* Heure Normale de l'Atlantique North America */ return "-0400";}
179  if (TmZoneStr=="HNC"){/* Heure Normale du Centre North America */ return "-0600";}
180  if (TmZoneStr=="HNE"){/* Heure Normale de l'Est North America */ return "-0500";}
181  if (TmZoneStr=="HNP"){/* Heure Normale du Pacifique North America */ return "-0800";}
182  if (TmZoneStr=="HNR"){/* Heure Normale des Rocheuses North America */ return "-0700";}
183  if (TmZoneStr=="HNT"){/* Heure Normale de Terre-Neuve North America */ return "-0330";}
184  if (TmZoneStr=="HNY"){/* Heure Normale du Yukon North America */ return "-0900";}
185  if (TmZoneStr=="I"){/* India Time Zone Military */ return "+0900";}
186  if (TmZoneStr=="IST"){/* Irish Summer Time Europe */ return "+0100";}
187  if (TmZoneStr=="K"){/* Kilo Time Zone Military */ return "+1000";}
188  if (TmZoneStr=="L"){/* Lima Time Zone Military */ return "+1100";}
189  if (TmZoneStr=="M"){/* Mike Time Zone Military */ return "+1200";}
190  if (TmZoneStr=="MDT"){/* Mountain Daylight Time North America */ return "-0600";}
191  if (TmZoneStr=="MESZ"){/* Mitteleuropeische Sommerzeit Europe */ return "+0200";}
192  if (TmZoneStr=="MEZ"){/* Mitteleuropeische Zeit Europe */ return "+0100";}
193  if (TmZoneStr=="MSD"){/* Moscow Daylight Time Europe */ return "+0400";}
194  if (TmZoneStr=="MSK"){/* Moscow Standard Time Europe */ return "+0300";}
195  if (TmZoneStr=="MST"){/* Mountain Standard Time North America */ return "-0700";}
196  if (TmZoneStr=="N"){/* November Time Zone Military */ return "-0100";}
197  if (TmZoneStr=="NDT"){/* Newfoundland Daylight Time North America */ return "-0230";}
198  if (TmZoneStr=="NFT"){/* Norfolk (Island) Time Australia */ return "+ 11:30";}
199  if (TmZoneStr=="NST"){/* Newfoundland Standard Time North America */ return "-0330";}
200  if (TmZoneStr=="O"){/* Oscar Time Zone Military */ return "-0200";}
201  if (TmZoneStr=="P"){/* Papa Time Zone Military */ return "-0300";}
202  if (TmZoneStr=="PDT"){/* Pacific Daylight Time North America */ return "-0700";}
203  if (TmZoneStr=="PST"){/* Pacific Standard Time North America */ return "-0800";}
204  if (TmZoneStr=="Q"){/* Quebec Time Zone Military */ return "-0400";}
205  if (TmZoneStr=="R"){/* Romeo Time Zone Military */ return "-0500";}
206  if (TmZoneStr=="S"){/* Sierra Time Zone Military */ return "-0600";}
207  if (TmZoneStr=="T"){/* Tango Time Zone Military */ return "-0700";}
208  if (TmZoneStr=="U"){/* Uniform Time Zone Military */ return "-0800";}
209  if (TmZoneStr=="UTC"){/* Coordinated Universal Time Europe */ return "+0000";}
210  if (TmZoneStr=="V"){/* Victor Time Zone Military */ return "-0900";}
211  if (TmZoneStr=="W"){/* Whiskey Time Zone Military */ return "-1000";}
212  if (TmZoneStr=="WDT"){/* Western Daylight Time Australia */ return "+0900";}
213  if (TmZoneStr=="WEDT"){/* Western European Daylight Time Europe */ return "+0100";}
214  if (TmZoneStr=="WEST"){/* Western European Summer Time Europe */ return "+0100";}
215  if (TmZoneStr=="WET"){/* Western European Time Europe */ return "+0000";}
216  if (TmZoneStr=="WST"){/* Western Summer Time Australia */ return "+0900";}
217  if (TmZoneStr=="WST"){/* Western Standard Time Australia */ return "+0800";}
218  if (TmZoneStr=="X"){/* X-ray Time Zone Military */ return "-1100";}
219  if (TmZoneStr=="Y"){/* Yankee Time Zone Military */ return "-1200";}
220  if (TmZoneStr=="Z"){/* Zulu Time Zone Military */ return "+0000";}
221  return "-0000";
222 }
static uint64 TTmInfo::GetWeekMSecs ( )
inlinestatic

Definition at line 64 of file tm.h.

64 {return 7*24*60*60*1000;}
void TTmInfo::InitDayOfWeekNmV ( )
staticprivate

Definition at line 24 of file tm.cpp.

References TVec< TVal, TSizeTy >::Add(), IAssert, TVec< TVal, TSizeTy >::Len(), SiDayOfWeekNmV, and UsDayOfWeekNmV.

Referenced by EnsureInit().

24  {
25  // english
26  UsDayOfWeekNmV.Add("sun"); UsDayOfWeekNmV.Add("mon");
27  UsDayOfWeekNmV.Add("tue"); UsDayOfWeekNmV.Add("wed");
28  UsDayOfWeekNmV.Add("thu"); UsDayOfWeekNmV.Add("fri");
29  UsDayOfWeekNmV.Add("sat");
31  // slovene
32  SiDayOfWeekNmV.Add("ned"); SiDayOfWeekNmV.Add("pon");
33  SiDayOfWeekNmV.Add("tor"); SiDayOfWeekNmV.Add("sre");
34  SiDayOfWeekNmV.Add("cet"); SiDayOfWeekNmV.Add("pet");
35  SiDayOfWeekNmV.Add("sob");
37 }
#define IAssert(Cond)
Definition: bd.h:262
static TStrV SiDayOfWeekNmV
Definition: tm.h:27
TSizeTy Len() const
Returns the number of elements in the vector.
Definition: ds.h:575
static TStrV UsDayOfWeekNmV
Definition: tm.h:26
TSizeTy Add()
Adds a new element at the end of the vector, after its current last element.
Definition: ds.h:602

Here is the call graph for this function:

Here is the caller graph for this function:

void TTmInfo::InitMonthNmV ( )
staticprivate

Definition at line 9 of file tm.cpp.

References TVec< TVal, TSizeTy >::Add(), IAssert, TVec< TVal, TSizeTy >::Len(), SiMonthNmV, and UsMonthNmV.

Referenced by EnsureInit().

9  {
10  // english
11  UsMonthNmV.Add("jan"); UsMonthNmV.Add("feb"); UsMonthNmV.Add("mar");
12  UsMonthNmV.Add("apr"); UsMonthNmV.Add("may"); UsMonthNmV.Add("jun");
13  UsMonthNmV.Add("jul"); UsMonthNmV.Add("aug"); UsMonthNmV.Add("sep");
14  UsMonthNmV.Add("oct"); UsMonthNmV.Add("nov"); UsMonthNmV.Add("dec");
15  IAssert(UsMonthNmV.Len()==12);
16  // slovene
17  SiMonthNmV.Add("jan"); SiMonthNmV.Add("feb"); SiMonthNmV.Add("mar");
18  SiMonthNmV.Add("apr"); SiMonthNmV.Add("maj"); SiMonthNmV.Add("jun");
19  SiMonthNmV.Add("jul"); SiMonthNmV.Add("avg"); SiMonthNmV.Add("sep");
20  SiMonthNmV.Add("okt"); SiMonthNmV.Add("nov"); SiMonthNmV.Add("dec");
21  IAssert(SiMonthNmV.Len()==12);
22 }
#define IAssert(Cond)
Definition: bd.h:262
static TStrV UsMonthNmV
Definition: tm.h:24
TSizeTy Len() const
Returns the number of elements in the vector.
Definition: ds.h:575
static TStrV SiMonthNmV
Definition: tm.h:25
TSizeTy Add()
Adds a new element at the end of the vector, after its current last element.
Definition: ds.h:602

Here is the call graph for this function:

Here is the caller graph for this function:

static bool TTmInfo::IsDayOfWeekNm ( const TStr DayOfWeekNm,
const TLoc Loc = lUs 
)
inlinestatic

Definition at line 38 of file tm.h.

References GetDayOfWeekN().

38  {
39  return GetDayOfWeekN(DayOfWeekNm, Loc)!=-1;}
static int GetDayOfWeekN(const TStr &DayOfWeekNm, const TLoc &Loc=lUs)
Definition: tm.cpp:60

Here is the call graph for this function:

static bool TTmInfo::IsMonthNm ( const TStr MonthNm,
const TLoc Loc = lUs 
)
inlinestatic

Definition at line 34 of file tm.h.

References GetMonthN().

34  {
35  return GetMonthN(MonthNm, Loc)!=-1;}
static int GetMonthN(const TStr &MonthNm, const TLoc &Loc=lUs)
Definition: tm.cpp:39

Here is the call graph for this function:

Member Data Documentation

const int TTmInfo::AprN =4
static

Definition at line 54 of file tm.h.

const int TTmInfo::AugN =8
static

Definition at line 56 of file tm.h.

const int TTmInfo::DecN =12
static

Definition at line 58 of file tm.h.

const int TTmInfo::FebN =2
static

Definition at line 53 of file tm.h.

const int TTmInfo::FriN =6
static

Definition at line 49 of file tm.h.

bool TTmInfo::InitP =false
staticprivate

Definition at line 23 of file tm.h.

Referenced by EnsureInit().

const int TTmInfo::JanN =1
static

Definition at line 53 of file tm.h.

const int TTmInfo::JulN =7
static

Definition at line 56 of file tm.h.

const int TTmInfo::JunN =6
static

Definition at line 55 of file tm.h.

const int TTmInfo::MarN =3
static

Definition at line 54 of file tm.h.

const int TTmInfo::MayN =5
static

Definition at line 55 of file tm.h.

const int TTmInfo::MonN =2
static

Definition at line 47 of file tm.h.

Referenced by TSecTm::GetZeroWeekTm().

const int TTmInfo::NovN =11
static

Definition at line 58 of file tm.h.

const int TTmInfo::OctN =10
static

Definition at line 57 of file tm.h.

const int TTmInfo::SatN =7
static

Definition at line 50 of file tm.h.

const int TTmInfo::SepN =9
static

Definition at line 57 of file tm.h.

TStrV TTmInfo::SiDayOfWeekNmV
staticprivate

Definition at line 27 of file tm.h.

Referenced by GetDayOfWeekN(), GetDayOfWeekNm(), and InitDayOfWeekNmV().

TStrV TTmInfo::SiMonthNmV
staticprivate

Definition at line 25 of file tm.h.

Referenced by GetMonthN(), GetMonthNm(), and InitMonthNmV().

const int TTmInfo::SunN =1
static

Definition at line 47 of file tm.h.

const int TTmInfo::ThuN =5
static

Definition at line 49 of file tm.h.

const int TTmInfo::TueN =3
static

Definition at line 48 of file tm.h.

TStrV TTmInfo::UsDayOfWeekNmV
staticprivate

Definition at line 26 of file tm.h.

Referenced by GetDayOfWeekN(), GetDayOfWeekNm(), and InitDayOfWeekNmV().

TStrV TTmInfo::UsMonthNmV
staticprivate

Definition at line 24 of file tm.h.

Referenced by GetMonthN(), GetMonthNm(), and InitMonthNmV().

const int TTmInfo::WedN =4
static

Definition at line 48 of file tm.h.


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