#include <Timezone.hpp>
Public Types | |
typedef RefCountPointer< const Timezone > | Ptr |
Public Member Functions | |
Timezone (const MAPM &seconds) | |
Constructor. More... | |
Timezone (const ATDurationOrDerived::Ptr &duration, const DynamicContext *context) | |
Constructor. More... | |
bool | equals (const Timezone::Ptr &other) const |
Returns true if other is equal to this, false otherwise. More... | |
ATDurationOrDerived::Ptr | asDayTimeDuration (const DynamicContext *context) const |
const XMLCh * | asString (const DynamicContext *context) const |
Returns a string representation of this Timezone. More... | |
const MAPM & | asSeconds () const |
Returns the whole timezone expressed in seconds. More... | |
![]() | |
ReferenceCounted () | |
virtual | ~ReferenceCounted () |
void | incrementRefCount () const |
Increment the reference count. More... | |
virtual void | decrementRefCount () const |
Decrement the reference count, deleting if it becomes zero. More... | |
unsigned int | getRefCount () const |
Static Public Member Functions | |
static MAPM | convert (bool positive, int hour, int minute) |
static void | validate (const MAPM &tz) |
Additional Inherited Members | |
![]() | |
unsigned int | _ref_count |
typedef RefCountPointer<const Timezone> Timezone::Ptr |
Timezone::Timezone | ( | const MAPM & | seconds | ) |
Constructor.
Creates a Timezone representing the given number of seconds.
Timezone::Timezone | ( | const ATDurationOrDerived::Ptr & | duration, |
const DynamicContext * | context | ||
) |
Constructor.
Creates a Timezone representing the given duration.
ATDurationOrDerived::Ptr Timezone::asDayTimeDuration | ( | const DynamicContext * | context | ) | const |
|
inline |
Returns the whole timezone expressed in seconds.
const XMLCh* Timezone::asString | ( | const DynamicContext * | context | ) | const |
Returns a string representation of this Timezone.
If positive, does print leading '+' sign, and if UTC returns "Z".
|
static |
bool Timezone::equals | ( | const Timezone::Ptr & | other | ) | const |
Returns true if other is equal to this, false otherwise.
|
static |