CTzId Class Reference

class CTzId : public CBase

Encapsulates a time zone identifier.

The identifier may be either a name or a number.

Since
9.1

Inherits from

Constructor & Destructor Documentation

CTzId()

CTzId ( ) [private]

CTzId(TUint)

CTzId ( TUint aNumericId ) [private]

Parameters

TUint aNumericId

~CTzId()

IMPORT_C ~CTzId ( )

Destructor.

Member Functions Documentation

CloneL()

IMPORT_C CTzId * CloneL ( ) const

This should not be used. For internal use only.

Replicates a CTzId .

leave
KErrNoMemory or some other system error code.

ConstructL()

void ConstructL ( ) [private]

ExternalizeL(RWriteStream &)

IMPORT_C void ExternalizeL ( RWriteStream & aStream ) const

This should not be used. For internal use only.

Time zone ID data externaliser.

Parameters

RWriteStream & aStream A stream that will contain the serialised time zone ID.

InternalizeL(RReadStream &)

IMPORT_C void InternalizeL ( RReadStream & aStream )

This should not be used. For internal use only.

Serialised CTzId data internaliser.

Parameters

RReadStream & aStream a stream containing the serialised time zone Id

IsUserTzId()

IMPORT_C TBool IsUserTzId ( ) const

Determines if this time zone identifier has a numeric identifier value that belongs to the range of values used to identify user-defined time zones.

IsUserTzId(TUint)

IMPORT_C TBool IsUserTzId ( TUint aTzId ) [static]

Determines if the given numeric time zone identifier value belongs to the range of values used to identify user-defined time zones.

Parameters

TUint aTzId Numeric time zone identifier value.

NewL(TUint)

IMPORT_C CTzId * NewL ( TUint aNumericId ) [static]

Time zone ID factory method.

panic
TzServer 8 aNumericId must not be zero.

Parameters

TUint aNumericId A numeric reference ID, generated by the time zone compiler.

NewL(const TDesC8 &)

IMPORT_C CTzId * NewL ( const TDesC8 & aNameIdentity ) [static]

Time zone ID factory method.

Parameters

const TDesC8 & aNameIdentity A name recognised by the time zone database.

NewL(RReadStream &)

IMPORT_C CTzId * NewL ( RReadStream & aStream ) [static]

This should not be used. For internal use only.

Time zone ID factory method.

leave
KErrNoMemory or some other system error code

Parameters

RReadStream & aStream a stream containing the serialised time zone Id

SetId(TUint)

IMPORT_C void SetId ( TUint aNumericId )

This should not be used. For internal use only.

Sets the numeric time zone ID.

Parameters

TUint aNumericId The new numeric ID, generated by the time zone compiler.

SetIdL(const TDesC8 &)

IMPORT_C void SetIdL ( const TDesC8 & aNameIdentity )

This should not be used. For internal use only.

Sets the the time zone's name.

Parameters

const TDesC8 & aNameIdentity string TZID as used in the Olson's TZ Database

SetIdL(TUint, const TDesC8 &)

void SetIdL ( TUint aNumRefId,
const TDesC8 & aZoneIdentity
)

Parameters

TUint aNumRefId
const TDesC8 & aZoneIdentity

TimeZoneNameID()

IMPORT_C const TDesC8 & TimeZoneNameID ( ) const

Retrieves the time zone's name.

This can be used after calling RTz::GetTimeZoneIdL() .

TimeZoneNumericID()

IMPORT_C TUint TimeZoneNumericID ( ) const

Retrieves the time zone's numeric ID.

This can be used after calling RTz::GetTimeZoneIdL() .

operator!=(const CTzId &)

TBool operator!= ( const CTzId & aTZId ) const [inline]

Inequality operator.

Parameters

const CTzId & aTZId The time zone ID to compare with this one.

operator==(const CTzId &)

IMPORT_C TBool operator== ( const CTzId & aTZId ) const

Equality operator.

Parameters

const CTzId & aTZId The ID of another time zone.

Member Data Documentation

TUint32 iReferenceId

TUint32 iReferenceId [private]

HBufC8 * iZoneId

HBufC8 * iZoneId [private]