SourceForge.net Logo
Public Types | Public Member Functions | Static Public Member Functions | List of all members
Timezone Class Reference

#include <Timezone.hpp>

Inheritance diagram for Timezone:
Inheritance graph
[legend]

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...
 
- Public Member Functions inherited from ReferenceCounted
 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

- Protected Attributes inherited from ReferenceCounted
unsigned int _ref_count
 

Member Typedef Documentation

Constructor & Destructor Documentation

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.

Member Function Documentation

ATDurationOrDerived::Ptr Timezone::asDayTimeDuration ( const DynamicContext context) const
const MAPM& Timezone::asSeconds ( ) 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 MAPM Timezone::convert ( bool  positive,
int  hour,
int  minute 
)
static
bool Timezone::equals ( const Timezone::Ptr other) const

Returns true if other is equal to this, false otherwise.

static void Timezone::validate ( const MAPM &  tz)
static

The documentation for this class was generated from the following file: