SenDateUtils Class Reference
This utility class provides static methods for conversions between Symbian class types and XSD time-date type. SenUtils.lib
-
Since
-
Series60 3.0
Constructor & Destructor Documentation
SenDateUtils()
SenDateUtils
|
(
|
)
|
[private, inline]
|
Hide default C++ constructor.
SenDateUtils(const SenDateUtils &)
Prohibit copy constructor if not deriving from
CBase
.
Member Functions 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
Parameters
const
TDesC8
& aXmlDateTime
|
source datetime to convert from
|
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
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 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
Parameters
TDes8
& aDest
|
(UTF8) result will be written here. It must be at least KXmlDateTimeMaxLength long.
|
const
TTime
& aSrc
|
|
operator=(const SenDateUtils &)
Prohibit assignment operator if not deriving from
CBase
.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.