Class: TGregorianDateTimeFormatter

Declaration: DateTime.h

Taxonomy Categories:

Member Functions:


Interface Category:

API.

Inherits From:

TPatternBasedDateTimeFormatter

Inherited By:

None.

Purpose:

A concrete derived class of TPatternBasedDateTimeFormatter that uses a Gregorian calendar for formatting and scanning dates.

Instantiation:

Allocate on the heap or the stack.

Deriving Classes:

TGregorianDateTimeFormatter is a concrete class designed to be used directly.

Concurrency:

Not multithread safe.

Resource Use:

No special requirements.

Other Considerations:

None.

Member Function: TGregorianDateTimeFormatter::TGregorianDateTimeFormatter

  1. TGregorianDateTimeFormatter ()
  2. TGregorianDateTimeFormatter (const TGregorianDateTimeFormatter & format)
  3. TGregorianDateTimeFormatter (const TCalendar & calendar)

Interface Category:

API.

Purpose:

  1. Default constructor.
  2. Copy constructor.
  3. Constructs a formatter containing the specified TCalendar.

Calling Context:

  1. Called by the stream-in operators.
  2. Called to copy an object.
  3. Called to construct a formatter with a specific calendar.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TGregorianDateTimeFormatter::~TGregorianDateTimeFormatter

virtual ~ TGregorianDateTimeFormatter ()

Interface Category:

API.

Purpose:

Destructor.

Calling Context:

Called to destroy an object.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TGregorianDateTimeFormatter::operator=

TGregorianDateTimeFormatter & operator =(const TGregorianDateTimeFormatter & format)

Interface Category:

API.

Purpose:

Assignment operator.

Calling Context:

Called when an object is assigned to another compatible object.

Parameters:

Return Value:

A non-const reference to the left-hand side object.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TGregorianDateTimeFormatter::operator<<=

virtual TStream & operator <<= (TStream & fromWhere)

Interface Category:

API.

Purpose:

Stream-in operator.

Calling Context:

Called to stream in data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself in from.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TGregorianDateTimeFormatter::operator>>=

virtual TStream & operator >>=(TStream & toWhere) const

Interface Category:

API.

Purpose:

Stream-out operator.

Calling Context:

Called to stream out data.

Parameters:

Return Value:

Returns a reference to the stream the object streams itself out to.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TGregorianDateTimeFormatter::GetCalendar

virtual TCalendar * GetCalendar () const

Interface Category:

API.

Purpose:

Returns the calendar used by this formatter, TGregorianCalendar.

Calling Context:

Called by Format and Scan.

Parameters:

Return Value:

Returns a pointer to a TGregorianCalendar object.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TGregorianDateTimeFormatter::SetCalendar

void SetCalendar (const TCalendar & calendar)

Interface Category:

API.

Purpose:

Sets the calendar for the formatter.

Calling Context:

Called to set the calendar for the formatter.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

None.

Member Function: TGregorianDateTimeFormatter::InitDateOnlyFormat

virtual void InitDateOnlyFormat ()

Interface Category:

API.

Purpose:

Temporary way to construct the default format. Do not use this member function. Instead, use Locale to get the correct date time format.

Calling Context:

Call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

This member function will be replaced in future versions of the CommonPoint application system.

Member Function: TGregorianDateTimeFormatter::InitTimeOnlyFormat

virtual void InitTimeOnlyFormat ()

Interface Category:

API.

Purpose:

Temporary way to construct the default format. Do not use this member function. Instead, use Locale to get the correct date time format.

Calling Context:

Call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

This member function will be replaced in future versions of the CommonPoint application system.

Member Function: TGregorianDateTimeFormatter::InitShortFormat

virtual void InitShortFormat ()

Interface Category:

API.

Purpose:

Temporary way to construct the default format. Do not use this member function. Instead, use Locale to get the correct date time format.

Calling Context:

Call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

This member function will be replaced in future versions of the CommonPoint application system.

Member Function: TGregorianDateTimeFormatter::InitLongFormat

virtual void InitLongFormat ()

Interface Category:

API.

Purpose:

Temporary way to construct the default format. Do not use this member function. Instead, use Locale to get the correct date time format.

Calling Context:

Call this function directly.

Parameters:

Return Value:

None.

Exceptions:

Throws no exceptions, passes all exceptions through.

Concurrency:

Not multithread safe.

Other Considerations:

This member function will be replaced in future versions of the CommonPoint application system.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.