class PsiZone

A singleton wrapper for a psi_timezone . More...

Definition#include <lib/psitime.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Static Methods


Detailed Description

A singleton wrapper for a psi_timezone . This class is used by PsiTime to initialize it's psi_timezone variable. PsiZone itself is initialized from within rpcs::getMachineInfo . In an application, you typically call this at the very beginning, just after connection setup. From then on, a single PsiZone instance is held in memory and used by the various constructors of PsiTime.

PsiZonegetInstance ()

[static]

Retrieve the singleton object. If it does not exist, it is created.

bool  getZone (psi_timezone &ptz)

Retrieve the Psion time zone.

Parameters:
ptzThe time zone is returned here.

Returns: false, if the time zone is not known (yet).