Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <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:


Member functions


NullTTime()

IMPORT_C static TTime NullTTime();

Description

Gets a TTime with a null value.

Return value

TTime

TTime object with a null value.


MaxTTime()

IMPORT_C 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()

IMPORT_C static TTime MinTTime();

Description

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

Return value

TTime

The minimum TTime value.


DaysInMonth(TInt,TMonth)

IMPORT_C 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(TInt)

IMPORT_C 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(TInt)

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