#include <tz.h>
Link against:
tzclient.lib
class CTzId : public CBase;
Description
Encapsulates a time zone identifier.
The identifier may be either a name or a number.
Derivation
CBase
-
Base class for all classes to be instantiated on the heap.
CTzId
- Encapsulates a time zone identifier.
Members
Defined in CTzId
:
Inherited from CBase
:
Related Topics
»
Symbian OS v9.4 »
Examples »
Application Services example code »
timezoneconversion: Using time zone conversion
Construction and destruction
IMPORT_C ~CTzId();
Description
Destructor.
IMPORT_C static CTzId* NewL(TUint aNumericId);
Description
Time
zone ID factory method.
Parameters
TUint aNumericId |
A numeric reference ID, generated by the time zone compiler.
|
|
Return value
CTzId *
|
A pointer to the time zone ID. Clients take ownership.
|
|
Panic codes
TzServer |
8 aNumericId must not be zero.
|
|
IMPORT_C static CTzId* NewL(const TDesC8 &aNameIdentity);
Description
Time
zone ID factory method.
Parameters
const TDesC8 &aNameIdentity |
A name recognised by the time zone database.
|
|
Return value
CTzId *
|
A pointer to the time zone ID. Clients take ownership.
|
|
IMPORT_C const TDesC8& TimeZoneNameID() const;
Description
Retrieves the time zone's name. This can be used after calling RTz::GetTimeZoneIdL()const
.
Return value
const TDesC8 & |
The time zone's name, if one has been set. A NULL descriptor if not.
|
|
IMPORT_C TUint TimeZoneNumericID() const;
Description
Retrieves the time zone's numeric ID. This can be used after calling RTz::GetTimeZoneIdL()const
.
Return value
TUint
|
The time zone's numeric ID, generated by the time zone compiler.
|
|
operator==(const CTzId &)const
IMPORT_C TBool operator==(const CTzId &aTZId) const;
Description
Equality operator.
Parameters
const CTzId &aTZId |
The ID of another time zone.
|
|
Return value
TBool
|
True if the specified time zone ID is the same as this one, otherwise false.
|
|
operator!=(const CTzId &)const
inline TBool operator!=(const CTzId &aTZId) const;
Description
Inequality operator.
Parameters
const CTzId &aTZId |
The time zone ID to compare with this one.
|
|
Return value
TBool
|
True if the two IDs are different. False if they are the same.
|
|