Qore Programming Language Reference Manual 0.8.8

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

All Classes Namespaces Functions Variables Groups Pages
QC_TimeZone.dox.h
1 namespace Qore {
4
6 class TimeZone {
7
8 public:
10
20 int UTCOffset();
21
22 public:
24
35 constructor(string region);
36
37 public:
39
46 constructor(softint seconds_east);
47
48 public:
50
55 copy();
56
57 public:
59
70 date date(softint secs, softint us = 0);
71
72 public:
74
84 date date(date d);
85
86 public:
88
100 date date(string dtstr);
101
102 public:
104
124 date date(string dtstr, string mask);
125
126 public:
128
140 date dateMs(softint ms);
141
142 public:
144
156 date dateUs(softint us);
157
158 public:
160
172 bool hasDST();
173
174 public:
176
186 string region();
187
188 public:
190
200 static TimeZone get();
201
202 public:
204
215 static nothing set(TimeZone zone);
216
217 public:
219
231 static nothing setRegion(string region);
232
233 public:
235
245 static nothing setUTCOffset(softint seconds_east);
246 };
247 };
Qore::TimeZone::constructor
constructor(string region)
Creates the TimeZone object based on the region name (ex: &quot;America/Chicago&quot;)
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::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:6
Qore::TimeZone::set
static nothing set(TimeZone zone)
Sets the time zone for the current Program object from a TimeZone object.
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::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 &quot;+01:00&quot;.
Qore::TimeZone::hasDST
bool hasDST()
Returns True if the zone has daylight saving&#39;s time rules, False if not.