| Qore Programming Language Reference Manual 1.0.8

QC_TimeZone.dox.h
1
3 namespace Qore {
5
11 class TimeZone : public Serializable {
12
13 public:
15
25 int UTCOffset();
26
27 public:
29
43 constructor(string region);
44
45 public:
47
54 constructor(softint seconds_east);
55
56 public:
58
63 copy();
64
65 public:
67
78 date date(softint secs, softint us = 0);
79
80 public:
82
92 date date(date d);
93
94 public:
96
108 date date(string dtstr);
109
110 public:
112
132 date date(string dtstr, string mask);
133
134 public:
136
148 date dateMs(softint ms);
149
150 public:
152
164 date dateUs(softint us);
165
166 public:
168
180 bool hasDST();
181
182 public:
184
194 string region();
195
196 public:
198
208 static TimeZone get();
209
210 public:
212
223 static nothing set(TimeZone zone);
224
225 public:
227
239 static nothing setRegion(string region);
240
241 public:
243
253 static nothing setUTCOffset(softint seconds_east);
254 };
255 }
Qore::Serializable::constructor
constructor()
The constructor does not perform any action; this class is just used to mark a class as serializable ...
Qore::TimeZone::setUTCOffset
static nothing setUTCOffset(softint seconds_east)
Sets the time zone for the current Program object from an integer offset in seconds east of UTC...
Qore::TimeZone::dateUs
date dateUs(softint us)
Returns a date in the object&#39;s zone based on an offsets in microseconds from 1970-01-01Z.
Qore::Serializable
The Serializable class can be used to mark a class as being serializable.
Definition: QC_Serializable.dox.h:96
Qore::TimeZone::setRegion
static nothing setRegion(string region)
Sets the time zone for the current Program object from a time zone region name.
Qore::TimeZone
The TimeZone class provides access to time zone functionality.
Definition: QC_TimeZone.dox.h:11
Qore::TimeZone::date
date date(softint secs, softint us=0)
Returns the equivalent date in the time zone of the current object.
Qore::TimeZone::UTCOffset
int UTCOffset()
Returns the number of seconds east of UTC for the zone; negative numbers indicate a zone west of UTC...
Qore::TimeZone::dateMs
date dateMs(softint ms)
Returns a date in the object&#39;s zone based on an offsets in milliseconds from 1970-01-01Z.
Qore
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3
Qore::TimeZone::copy
copy()
Creates a copy of the TimeZone object.
Qore::TimeZone::region
string region()
Returns the region name as a string; if the current zone is based on a UTC offset, then the UTC offset is returned as a string like "+01:00".
Qore::TimeZone::hasDST
bool hasDST()
Returns True if the zone has daylight saving time rules, False if not.