Attempt to represent the S^2->S^3 header reorganisation as a series of "hg rename" operations
1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // This file contains the class TInternetDate
27 #ifndef __TINTERNETDATE_H__
28 #define __TINTERNETDATE_H__
33 Stores dates in universal time and provides parsing of internet style dates
34 into TDateTime and RFC 1123 (updates RFC 822) dates.
36 Supports parsing of the following date formats:
37 Sun, 06 Nov 1994 08:49:37 GMT ; RFC 822, updated by RFC 1123
38 Sunday, 06-Nov-94 08:49:37 GMT ; RFC 850, obsoleted by RFC 1036
39 Sun Nov 6 08:49:37 1994 ; ANSI C's asctime() format
41 In case of Date Formats with offsets "Mon, 21 Jan 2002 23:00:00 +0210" , equivalent
42 time in UTC can be determined by substracting the offset from the local time (RFC 3339).
44 All dates are store relative to Universal Time and not local time.
54 Enum defining internet date formats.
59 enum TInternetDateFormat
62 Rfc 1123 Compliant date format
67 inline TInternetDate();
70 inline TInternetDate(TDateTime aUniversalTime);
72 IMPORT_C void SetDateL(const TDesC8& aDate);
74 IMPORT_C const TDateTime& DateTime();
76 IMPORT_C HBufC8* InternetDateTimeL(TInternetDateFormat aInternetDateFormat);
80 A date and time object
87 Intended Usage: Default Constructor. Used when setting dates that are in a text format using SetDateL
91 inline TInternetDate::TInternetDate()
95 Intended Usage: Constructor. Used when setting a date that you later want parsed into an internet text format
98 @param aUniversalTime a time that should correspond to Universal Time.
100 inline TInternetDate::TInternetDate(TDateTime aUniversalTime) :
101 iDateTime(aUniversalTime)
105 #endif // __TINTERNETDATE_H__