#include <Timezone.hpp>
Inheritance diagram for Timezone:
Public Types | |
typedef RefCountPointer< const Timezone > | Ptr |
Public Member Functions | |
Timezone (const MAPM &seconds) | |
Constructor. | |
Timezone (const ATDurationOrDerived::Ptr &duration, const DynamicContext *context) | |
Constructor. | |
bool | equals (const Timezone::Ptr &other) const |
Returns true if other is equal to this, false otherwise. | |
ATDurationOrDerived::Ptr | asDayTimeDuration (const DynamicContext *context) const |
const XMLCh * | asString (const DynamicContext *context) const |
Returns a string representation of this Timezone. | |
const MAPM & | asSeconds () const |
Returns the whole timezone expressed in seconds. | |
Static Public Member Functions | |
static MAPM | convert (bool positive, int hour, int minute) |
static void | validate (const MAPM &tz) |
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.
bool Timezone::equals | ( | const Timezone::Ptr & | other | ) | const |
Returns true if other is equal to this, false otherwise.
ATDurationOrDerived::Ptr Timezone::asDayTimeDuration | ( | const DynamicContext * | context | ) | const |
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".
const MAPM& Timezone::asSeconds | ( | ) | const [inline] |
Returns the whole timezone expressed in seconds.
static MAPM Timezone::convert | ( | bool | positive, | |
int | hour, | |||
int | minute | |||
) | [static] |
static void Timezone::validate | ( | const MAPM & | tz | ) | [static] |