SenDateUtils Class Reference
#include
<mw/SenDateUtils.h>
Link against: SenUtils.lib
Detailed Description
This utility class provides static methods for conversions between Symbian class types and XSD time-date type.
- Since
- Series60 3.0
Member Enumeration Documentation
Enum anonymous
Enumerator | Value | Description |
---|
KXmlDateTimeMaxLength | 31 | |
Member Function Documentation
FromXmlDateTimeL ( const TDesC8 & )
IMPORT_C TTime | FromXmlDateTimeL | ( | const TDesC8 & | aXmlDateTime | ) | [static] |
Convert dateTime (from XML schema) to Symbian
TTime. A panic will occur if an attempt is made to set an invalid value for any of the fields. Panics:
User 3 if illegal date. Leave codes: KErrUnderflow Not enough data given or negative values KErrOverflow Too big values for e.g. month KErrGeneral Invalid date structure No check is made upon the validity of the year.
- Since
- Series60 3.0
Parameter | Description | aXmlDateTime | source datetime to convert from |
Returns: The returned time will be in UTC.
ToXmlDateTimeUtf82L ( TDes8 &, const TTime & )
IMPORT_C void | ToXmlDateTimeUtf82L | ( | TDes8 & | aDest, |
| const TTime & | aSrc |
| ) | [static] |
Convert Symbian
TTime to dateTime (from XML schema). Leave codes: KErrOverflow target descriptor is less than KXmlDateTimeMaxLength (25 bytes)
- Since
- Series60 5.0
Parameter | Description | aDest | (UTF8) result will be written here. It must be at least KXmlDateTimeMaxLength long. |
ToXmlDateTimeUtf8L ( TDes8 &, const TTime & )
IMPORT_C void | ToXmlDateTimeUtf8L | ( | TDes8 & | aDest, |
| const TTime & | aSrc |
| ) | [static] |
Convert Symbian
TTime to dateTime (from XML schema). Leave codes: KErrOverflow target descriptor is less than KXmlDateTimeMaxLength (25 bytes)
- Since
- Series60 3.0
Parameter | Description | aDest | (UTF8) result will be written here. It must be at least KXmlDateTimeMaxLength long. |