TImRfc822DateField Class Reference

class TImRfc822DateField
Public Member Functions
IMPORT_C TIntParseDateField(const TDesC8 &, TTime &)
IMPORT_C voidSetDate(const TTime &, TDes8 &)
Private Member Functions
TBool GetMonth(const TDesC8 &, TMonth &)
TBool GetTimezone(const TDesC8 &, TInt &)

Member Functions Documentation

GetMonth(const TDesC8 &, TMonth &)

TBool GetMonth(const TDesC8 &name,
TMonth &month
)[private]

Parameters

const TDesC8 & name
TMonth & month

GetTimezone(const TDesC8 &, TInt &)

TBool GetTimezone(const TDesC8 &name,
TInt &minsOffset
)[private]

since 6.1

Parameters

const TDesC8 & name
TInt & minsOffset

ParseDateField(const TDesC8 &, TTime &)

IMPORT_C TIntParseDateField(const TDesC8 &aRfc822DateField,
TTime &rTime
)

Converts an RFC822 date field into a TTime value representing local time. Timezone information is added to represent time in local timezone.

Parameters

const TDesC8 & aRfc822DateFieldThe RFC822 formatted date field
TTime & rTimeThe returned local time

SetDate(const TTime &, TDes8 &)

IMPORT_C voidSetDate(const TTime &aTimeDate,
TDes8 &rOutputLine
)

Sets a descriptor to contain an RFC822 formatted date field from a TTime parameter. Timezone information is obtained from the locale settings.

Parameters

const TTime & aTimeDateThe TTime value to convert
TDes8 & rOutputLineThe returned RFC822 formatted date field