EPOC   SDK Home Glossary Indexes Previous Next Up

TGsmDateTime class


Contents


TGsmDateTime class — GSM time and date structure

Section Contents


Overview

Derivation

TDateTime

Date and time fields

Defined in

etelbgsm.h

Link against

gsmbas.lib

Description

This class adds a GMT time-zone field to the TDateTime class.

Writing derived classes

This class is not intended for user derivation


Construction


TGsmDateTime() — Default C++ constructor

TGsmDateTime();

Description

The default C++ constructor allows an uninitialized TGsmDateTime to be constructed. It is necessary because there is also a non-default constructor in this class.


TGsmDateTime() — C++ constructor with date/time/time-zone fields

TGsmDateTime(TInt aTimeZone,TInt aYear,TMonth aMonth,TInt aDay,TInt aHour,TInt aMinute, TInt aSecond,TInt aMicroSecond);

Description

The C++ constructor is used to construct the TGsmDateTime object with the time zone, and the seven fields which comprise a date and time.

Arguments

TInt aTimeZone

The time zone. The difference between local time and GMT in ¼ hour units  — the range is -47to +48.

No check is made for validity.

TInt aYear

The year. No check is made for validity.

TMonth aMonth

The month. Range is EJanuary to Edecember.

TInt aDay

The day. Range is zero to number of days in month minus one.

TInt aHour

The hour. Range is 0 to 23.

TInt aMinute

The minute. Range is 0 to 59.

TInt aSecond

The second. Range is 0 to 59.

TInt aMicroSecond

The microsecond. Range is 0 to 999999.

Notes

Time zone setting and getting functions


SetTimeZone() — Set the time zone

void SetTimeZone(const TInt aTimeZone);

Description

This function sets the time zone to the given value

Arguments

const TInt aTimeZone

The new time zone.


TimeZone() — Get time zone

TInt TimeZone() const;

Description

This function returns the time zone.

Return value

TInt

On return, contains the currently set time zone.

EPOC       SDK Home Glossary Indexes Previous Next Up