TImRfc822DateField Class Reference

class TImRfc822DateField
Public Member Functions
IMPORT_C TInt ParseDateField (const TDesC8 &, TTime &)
IMPORT_C void SetDate (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 TInt ParseDateField ( 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 & aRfc822DateField The RFC822 formatted date field
TTime & rTime The returned local time

SetDate(const TTime &, TDes8 &)

IMPORT_C void SetDate ( 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 & aTimeDate The TTime value to convert
TDes8 & rOutputLine The returned RFC822 formatted date field