Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

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



Location: agmdate.h
Link against: agnmodel.lib

Class TAgnDateTime

TAgnDateTime

Support

Supported from 5.0

Description

A container class for an agenda date and time. Agenda dates are represented by the TAgnDate typedef and agenda times by the TAgnTime typedef.

Defined in TAgnDateTime:
Date(), SetDate(), SetTime(), TAgnDateTime(), Time(), operator TAgnDate(), operator TTime()


Construction


TAgnDateTime()

TAgnDateTime();
TAgnDateTime(TAgnDate aDate);
TAgnDateTime(const TTime& aDateTime);
TAgnDateTime(TAgnDate aDate,TAgnTime aTime);

Description

Overloaded C++ constructor. The constructor can create the object:

Parameters

TAgnDate aDate

The agenda date.

TAgnTime aTime

The agenda time.

const TTime& aDateTime

Specifies a date/time with which to initialise the object.

[Top]


Set date and time


SetDate()

void SetDate(TAgnDate aDate);

Description

Sets the date.

Parameters

TAgnDate aDate

The new date.


SetTime()

void SetTime(TAgnTime aTime);

Description

Sets the time.

Parameters

TAgnTime aTime

The new time.

[Top]


Get date and time


Date()

TAgnDate Date() const;

Description

Gets the date.

Return value

TAgnDate

The stored date.


Time()

TAgnTime Time() const;

Description

Gets the time.

Return value

TAgnTime

The stored time.

[Top]


Operators


operator TTime()

operator TTime() const;

Description

Converts the stored date and time into a TTime object.


operator TAgnDate()

operator TAgnDate() const;

Description

Returns the stored date value.