Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: e32std.h
Link against: euser.lib

Class TLongDateFormatSpec

TLongDateFormatSpec

Support

Supported from 6.0

Description

Holds a list of commands which determine the long date format. For example, in the English locale, the long date format would be something like 14th January 2000 and the short date format would be something like 14/1/2000. An instance of this class should be passed as the second argument to TTime::FormatL(). The string does not include any time components. The contents of the long date format specification are set from the system-wide settings.

This class is used as follows:

TTime now;
now.HomeTime();
TBuf<KMaxLongDateFormatSpec*2> buffer; // KMaxLongDateFormatSpec is defined in e32std.h
now.FormatL(buffer,TLongDateFormatSpec());

Derivation

TBufBuild-independent modifiable buffer descriptor
TDes16Modifiable 16 bit descriptor; abstract class
TDesC16Abstract base class for 16 bit descriptors
TLongDateFormatSpecHolds a list of commands which determine the long date format

Defined in TLongDateFormatSpec:
Set(), TLongDateFormatSpec()

Inherited from TBuf:
operator=

Inherited from TDes16:
Append(), AppendFill(), AppendFormat(), AppendFormatList(), AppendJustify(), AppendNum(), AppendNumFixedWidth(), AppendNumFixedWidthUC(), AppendNumUC(), Capitalize(), Collate(), Copy(), CopyC(), CopyCP(), CopyF(), CopyLC(), CopyUC(), Delete(), Fill(), FillZ(), Fold(), Format(), FormatList(), Insert(), Justify(), LowerCase(), MaxLength(), MaxSize(), Num(), NumFixedWidth(), NumFixedWidthUC(), NumUC(), PtrZ(), Repeat(), Replace(), SetLength(), SetMax(), Swap(), Trim(), TrimAll(), TrimLeft(), TrimRight(), UpperCase(), Zero(), ZeroTerminate(), operator+=(), operator[]()

Inherited from TDesC16:
Alloc(), AllocL(), AllocLC(), Compare(), CompareC(), CompareF(), Find(), FindC(), FindF(), Left(), Length(), Locate(), LocateF(), LocateReverse(), LocateReverseF(), Match(), MatchC(), MatchF(), Mid(), Ptr(), Right(), Size(), operator!=(), operator<(), operator<=(), operator==(), operator>(), operator>=()


TLongDateFormatSpec()

TLongDateFormatSpec();

Description

The C++ constructor constructs the long date format specification; calls Set().

[Top]


Set()

void Set();

Description

Sets the contents of the long date format specification from the system-wide settings.