Qore Programming Language Reference Manual 1.17.0
Loading...
Searching...
No Matches
QC_TimeZone.dox.h
1
3namespace Qore {
5
11class TimeZone : public Serializable {
12
13public:
15
26
27public:
29
44
45public:
47
54 constructor(softint seconds_east);
55
56public:
58
64
65public:
67
78date date(softint secs, softint us = 0);
79
80public:
82
93
94public:
96
108date date(string dtstr);
109
110public:
112
134date date(string dtstr, string mask);
135
136public:
138
150date dateMs(softint ms);
151
152public:
154
166date dateUs(softint us);
167
168public:
170
182bool hasDST();
183
184public:
186
196string region();
197
198public:
200
210static TimeZone get();
211
212public:
214
225static nothing set(TimeZone zone);
226
227public:
229
245static nothing setRegion(string region);
246
247public:
249
260static nothing setUTCOffset(softint seconds_east);
261};
262}
The Serializable class can be used to mark a class as being serializable.
Definition: QC_Serializable.dox.h:96
The TimeZone class provides access to time zone functionality.
Definition: QC_TimeZone.dox.h:11
date dateMs(softint ms)
Returns a date in the object's zone based on an offsets in milliseconds from 1970-01-01Z.
date date(string dtstr)
Returns the equivalent date in the time zone of the current object.
static nothing setRegion(string region)
Sets the time zone for the current Program object from a time zone region name.
static TimeZone get()
Returns a TimeZone object for the current time zone.
static nothing set(TimeZone zone)
Sets the time zone for the current Program object from a TimeZone object.
constructor(softint seconds_east)
Creates the TimeZone object based on the number of seconds east of UTC (3600 = UTC +01)
date dateUs(softint us)
Returns a date in the object's zone based on an offsets in microseconds from 1970-01-01Z.
string region()
Returns the region name as a string; if the current zone is based on a UTC offset,...
bool hasDST()
Returns True if the zone has daylight saving time rules, False if not.
date date(string dtstr, string mask)
Returns a date/time value in the current TimeZone corresponding to parsing a string argument accordin...
constructor(string region)
Creates the TimeZone object based on the region name (ex: "America/Chicago")
copy()
Creates a copy of the TimeZone object.
int UTCOffset()
Returns the number of seconds east of UTC for the zone; negative numbers indicate a zone west of UTC.
static nothing setUTCOffset(softint seconds_east)
Sets the time zone for the current Program object from an integer offset in seconds east of UTC.
date date(date d)
Returns the equivalent date in the time zone of the current object.
date date(softint secs, softint us=0)
Returns the equivalent date in the time zone of the current object.
date date()
This function just returns 1970-01-01Z.
Qore namespace.
Definition: QC_AbstractSmartLock.dox.h:2