Time Class Reference

#include <e32std.h>

class Time
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()

Detailed Description

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

Member Function Documentation

DaysInMonth ( TInt, TMonth )

IMPORT_C TIntDaysInMonth(TIntaYear,
TMonthaMonth
)[static]

Gets the number of days in a month.

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

Returns: The number of days in the month.

IsLeapYear ( TInt )

IMPORT_C TBoolIsLeapYear(TIntaYear)[static]

Tests whether a year is a leap year.

ParameterDescription
aYearThe year of interest.

Returns: True if leap year, False if not.

LeapYearsUpTo ( TInt )

IMPORT_C TIntLeapYearsUpTo(TIntaYear)[static]

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

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

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

MaxTTime ( )

IMPORT_C TTimeMaxTTime()[static]

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

Returns: The maximum TTime value.

MinTTime ( )

IMPORT_C TTimeMinTTime()[static]

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

Returns: The minimum TTime value.

NullTTime ( )

IMPORT_C TTimeNullTTime()[static]

Gets a TTime with a null value.

Returns: TTime object with a null value.