Time Class Reference

class Time

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

Public Member Functions
IMPORT_C TIntDaysInMonth(TInt, TMonth)
IMPORT_C TBoolIsLeapYear(TInt)
IMPORT_C TIntLeapYearsUpTo(TInt)
IMPORT_C TTimeMaxTTime()
IMPORT_C TTimeMinTTime()
IMPORT_C TTimeNullTTime()

Member Functions Documentation

DaysInMonth(TInt, TMonth)

IMPORT_C TIntDaysInMonth(TIntaYear,
TMonthaMonth
)[static]

Gets the number of days in a month.

Parameters

TInt aYearThe year. Must be specified because of leap years.
TMonth aMonthMonth, from EJanuary to EDecember.

IsLeapYear(TInt)

IMPORT_C TBoolIsLeapYear(TIntaYear)[static]

Tests whether a year is a leap year.

Parameters

TInt aYearThe year of interest.

LeapYearsUpTo(TInt)

IMPORT_C TIntLeapYearsUpTo(TIntaYear)[static]

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

Parameters

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

MaxTTime()

IMPORT_C TTimeMaxTTime()[static]

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

MinTTime()

IMPORT_C TTimeMinTTime()[static]

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

NullTTime()

IMPORT_C TTimeNullTTime()[static]

Gets a TTime with a null value.