SenDateUtils Class Reference

class SenDateUtils
This utility class provides static methods for conversions between Symbian class types and XSD time-date type. SenUtils.lib
Since
Series60 3.0
Public Member Functions
IMPORT_C TTimeFromXmlDateTimeL(const TDesC8 &)
IMPORT_C voidToXmlDateTimeUtf82L(TDes8 &, const TTime &)
IMPORT_C voidToXmlDateTimeUtf8L(TDes8 &, const TTime &)
Private Member Functions
SenDateUtils()
SenDateUtils(const SenDateUtils &)
SenDateUtils &operator=(const SenDateUtils &)

Constructor & Destructor Documentation

SenDateUtils()

SenDateUtils()[private, inline]

Hide default C++ constructor.

SenDateUtils(const SenDateUtils &)

SenDateUtils(const SenDateUtils &)[private]

Prohibit copy constructor if not deriving from CBase.

Parameters

const SenDateUtils &

Member Functions Documentation

FromXmlDateTimeL(const TDesC8 &)

IMPORT_C TTimeFromXmlDateTimeL(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

Parameters

const TDesC8 & aXmlDateTimesource datetime to convert from

ToXmlDateTimeUtf82L(TDes8 &, const TTime &)

IMPORT_C voidToXmlDateTimeUtf82L(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

Parameters

TDes8 & aDest(UTF8) result will be written here. It must be at least KXmlDateTimeMaxLength long.
const TTime & aSrc

ToXmlDateTimeUtf8L(TDes8 &, const TTime &)

IMPORT_C voidToXmlDateTimeUtf8L(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

Parameters

TDes8 & aDest(UTF8) result will be written here. It must be at least KXmlDateTimeMaxLength long.
const TTime & aSrc

operator=(const SenDateUtils &)

SenDateUtils &operator=(const SenDateUtils &)[private]

Prohibit assignment operator if not deriving from CBase.

Parameters

const SenDateUtils &