Time Class Reference

class Time

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

Member Functions Documentation

DaysInMonth(TInt, TMonth)

IMPORT_C TInt DaysInMonth ( TInt aYear,
TMonth aMonth
) [static]

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.

IsLeapYear(TInt)

IMPORT_C TBool IsLeapYear ( TInt aYear ) [static]

Tests whether a year is a leap year.

Parameters

TInt aYear The year of interest.

LeapYearsUpTo(TInt)

IMPORT_C TInt LeapYearsUpTo ( TInt aYear ) [static]

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.

MaxTTime()

IMPORT_C TTime MaxTTime ( ) [static]

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

MinTTime()

IMPORT_C TTime MinTTime ( ) [static]

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

NullTTime()

IMPORT_C TTime NullTTime ( ) [static]

Gets a TTime with a null value.