Loading...
Searching...
No Matches
QC_TimeZone.dox.h
namespace Qore {
class TimeZone : public Serializable {
public:
int UTCOffset();
public:
constructor(string region);
public:
constructor(softint seconds_east);
public:
copy();
public:
date date(softint secs, softint us = 0);
public:
date date(date d);
public:
date date(string dtstr);
public:
date date(string dtstr, string mask);
public:
date dateMs(softint ms);
public:
date dateUs(softint us);
public:
bool hasDST();
public:
string region();
public:
static TimeZone get();
public:
static nothing set(TimeZone zone);
public:
static nothing setRegion(string region);
public:
static nothing setUTCOffset(softint seconds_east);
};
}
Qore::Serializable
The Serializable class can be used to mark a class as being serializable.
Definition: QC_Serializable.dox.h:96
Qore::TimeZone
The TimeZone class provides access to time zone functionality.
Definition: QC_TimeZone.dox.h:11
Qore::TimeZone::dateMs
date dateMs(softint ms)
Returns a date in the object's zone based on an offsets in milliseconds from 1970-01-01Z.
Qore::TimeZone::date
date date(string dtstr)
Returns the equivalent date in the time zone of the current object.
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::get
static TimeZone get()
Returns a TimeZone object for the current time zone.
Qore::TimeZone::set
static nothing set(TimeZone zone)
Sets the time zone for the current Program object from a TimeZone object.
Qore::TimeZone::constructor
constructor(softint seconds_east)
Creates the TimeZone object based on the number of seconds east of UTC (3600 = UTC +01)
Qore::TimeZone::dateUs
date dateUs(softint us)
Returns a date in the object's zone based on an offsets in microseconds from 1970-01-01Z.
Qore::TimeZone::region
string region()
Returns the region name as a string; if the current zone is based on a UTC offset,...
Qore::TimeZone::hasDST
bool hasDST()
Returns True if the zone has daylight saving time rules, False if not.
Qore::TimeZone::date
date date(string dtstr, string mask)
Returns a date/time value in the current TimeZone corresponding to parsing a string argument accordin...
Qore::TimeZone::constructor
constructor(string region)
Creates the TimeZone object based on the region name (ex: "America/Chicago")
Qore::TimeZone::copy
copy()
Creates a copy of the TimeZone 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::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::date
date date(date d)
Returns the equivalent date in the time zone of the current object.
Qore::TimeZone::date
date date(softint secs, softint us=0)
Returns the equivalent date in the time zone of the current object.
Qore::date
date date()
This function just returns 1970-01-01Z.
Qore
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3