Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

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



Location: e32std.h
Link against: euser.lib

Class Time

Time

Support

Supported from 5.0

Description

Utility class whose member functions may be used by the other date/time related classes.

Defined in Time:
DaysInMonth(), IsLeapYear(), LeapYearsUpTo(), MaxTTime(), MinTTime(), NullTTime()


Member functions


DaysInMonth()

static TInt DaysInMonth(TInt aYear, TMonth aMonth);

Description

Gets the number of days in a month.

Parameters

TInt aYear

The year. Must be specified because of leap years.

TMonth aMonth

Month, from EJanuary to EDecember.

Return value

TInt

The number of days in the month.


IsLeapYear()

static TBool IsLeapYear(TInt aYear);

Description

Tests whether a year is a leap year.

Parameters

TInt aYear

The year of interest.

Return value

TBool

True if leap year, False if not.


LeapYearsUpTo()

static TInt LeapYearsUpTo(TInt aYear);

Description

Gets the number of leap years between 0 AD nominal Gregorian and the specified year — inclusive.

Parameters

TInt aYear

The final year in the range to search. If negative, the function will return a negative number of leap years.

Return value

TInt

The number of leap years between 0 AD nominal Gregorian and aYear.


MaxTTime()

static TTime MaxTTime();

Description

Gets the maximum time value which can be held in a TTime object.

Return value

TTime

The maximum TTime value


MinTTime()

static TTime MinTTime();

Description

Gets the minimum time value which can be held in a TTime object.

Return value

TTime

The minimum TTime value.


NullTTime()

static TTime NullTTime();

Description

Gets a TTime with a null value.

Return value

TTime

TTime object with a null value