Original Symbian headers
Selected EUSER, Window Server, networking, graphics and device declarations
Loading...
Searching...
No Matches
TShortDateFormatSpec Class Reference

Contains a format list that defines the short date format. More...

#include <e32std.h>

Inheritance diagram for TShortDateFormatSpec:
TBuf< KMaxShortDateFormatSpec >

Public Member Functions

IMPORT_C TShortDateFormatSpec ()
 Default constructor.
 
IMPORT_C void Set ()
 Sets the contents of the short date format specification from the system-wide settings.
 
- Public Member Functions inherited from TBuf< KMaxShortDateFormatSpec >
 TBuf ()
 Creates a build-independent modifiable buffer descriptor which contains no data.
 
 TBuf (TInt aLength)
 Constructs an empty build independent modifiable buffer descriptor and sets its length to the specified value.
 
 TBuf (const TText *aString)
 Constructs the build-independent modifiable buffer descriptor from a zero terminated string.
 
 TBuf (const TDesC &aDes)
 Constructs the build-independent modifiable buffer descriptor from any existing build-independent descriptor.
 
TBuf< S > & operator= (const TText *aString)
 
TBuf< S > & operator= (const TDesC &aDes)
 Copies data into this descriptor replacing any existing data.
 
TBuf< S > & operator= (const TBuf< S > &aBuf)
 

Detailed Description

Contains a format list that defines the short date format.

An instance of this class should be passed as the second argument to TTime::FormatL(). The string does not include any time components. The content of the long date format specification is taken from the system-wide settings.

For example, in the English locale, the short date format would be something like 14/1/2000.

This class is used as follows:

TTime now;
now.HomeTime();
A build-independent modifiable buffer descriptor.
Definition e32cmn.h:1578
IMPORT_C TShortDateFormatSpec()
Default constructor.
Stores and manipulates the date and time.
Definition e32std.h:1889
IMPORT_C void HomeTime()
Sets the date and time of this TTime to the home time.
IMPORT_C void FormatL(TDes &aDes, const TDesC &aFormat) const
Puts this TTime into a descriptor and formats it according to the format string specified in the seco...
See also
KMaxShortDateFormatSpec
TTime::FormatL
API status
Published to all clients. Released API.

Definition at line 2206 of file e32std.h.

Constructor & Destructor Documentation

◆ TShortDateFormatSpec()

IMPORT_C TShortDateFormatSpec::TShortDateFormatSpec ( )

Default constructor.

Performs construction by calling Set().

TShortDateFormatSpec::Set

(generated from Symbian Developer Library)

Member Function Documentation

◆ Set()

IMPORT_C void TShortDateFormatSpec::Set ( )

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

(generated from Symbian Developer Library)


The documentation for this class was generated from the following files: