78 date date(softint secs, softint us = 0);
132 date date(
string dtstr,
string mask);
constructor()
The constructor does not perform any action; this class is just used to mark a class as serializable ...
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 dateUs(softint us)
Returns a date in the object's zone based on an offsets in microseconds from 1970-01-01Z.
The Serializable class can be used to mark a class as being serializable.
Definition: QC_Serializable.dox.h:96
static nothing setRegion(string region)
Sets the time zone for the current Program object from a time zone region name.
The TimeZone class provides access to time zone functionality.
Definition: QC_TimeZone.dox.h:11
date date(softint secs, softint us=0)
Returns the equivalent date in the time zone of the current object.
int UTCOffset()
Returns the number of seconds east of UTC for the zone; negative numbers indicate a zone west of UTC...
date dateMs(softint ms)
Returns a date in the object's zone based on an offsets in milliseconds from 1970-01-01Z.
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3
copy()
Creates a copy of the TimeZone object.
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".
bool hasDST()
Returns True if the zone has daylight saving time rules, False if not.