Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: e32std.h
Link against: euser.lib

Class Time

class Time;

Description

A utility class whose functions may be used by the other date/time related classes.

Members

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


Member functions


NullTTime()

static IMPORT_C TTime NullTTime();

Description

Gets a TTime with a null value.

Return value

TTime

TTime object with a null value.


MaxTTime()

static IMPORT_C 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 IMPORT_C TTime MinTTime();

Description

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

Return value

TTime

The minimum TTime value.


DaysInMonth()

static IMPORT_C 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 IMPORT_C 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 IMPORT_C 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.