Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: tinternetdate.h
Link against: inetprotutil.lib

Class TInternetDate

class TInternetDate;

Description

Stores dates in universal time and provides parsing of internet style dates into TDateTime and RFC 1123 (updates RFC 822) dates.

Supports parsing of the following date formats: Sun, 06 Nov 1994 08:49:37 GMT ; RFC 822, updated by RFC 1123 Sunday, 06-Nov-94 08:49:37 GMT ; RFC 850, obsoleted by RFC 1036 Sun Nov 6 08:49:37 1994 ; ANSI C's asctime() format

All dates are store relative to Universal Time and not local time.

Members

Defined in TInternetDate:
DateTime(), ERfc1123Format, InternetDateTimeL(), SetDateL(), TInternetDate(), TInternetDate(), TInternetDateFormat


Construction and destruction


TInternetDate()

inline TInternetDate();

Description

Intended Usage: Default Constructor. Used when setting dates that are in a text format using SetDateL


TInternetDate()

inline TInternetDate(TDateTime aUniversalTime);

Description

Intended Usage: Constructor. Used when setting a date that you later want parsed into an internet text format

Parameters

TDateTime aUniversalTime

[Top]


Member functions


SetDateL()

IMPORT_C void SetDateL(const TDesC8 &aDate);

Description

Used to set a date which is in a Internet form.

Parameters

const TDesC8 &aDate

the text form of the date .

Leave codes

KErrCorrupt,

if the date is not in the correct format


DateTime()

IMPORT_C const TDateTime &DateTime();

Description

Used to access the date/time

Return value

const TDateTime &

const TDateTime& The time stored in this object


InternetDateTimeL()

IMPORT_C HBufC8 *InternetDateTimeL(TInternetDateFormat aInternetDateFormat);

Description

Used to access the date/time in a text formate

Parameters

TInternetDateFormat aInternetDateFormat

The format of the date. Only RFC1123 dates are supported

Return value

HBufC8 *

HBufC8* A descriptor containing the date/time in the format specifed by the parameter aInternetDateFormat

Leave codes

KErrNoMemory

[Top]


Member enumerations


Enum TInternetDateFormat

TInternetDateFormat

Description

Enum defining internet date formats.

ERfc1123Format

Rfc 1123 Compliant date format