CalenDateUtils Class Reference

class CalenDateUtils
Public Member Functions
IMPORT_C TTimeBeginningOfDay(const TTime &)
IMPORT_C TTimeDefaultTime(const TTime &)
IMPORT_C TTimeDisplayTimeOnDay(const TTime &, const TTime &)
IMPORT_C voidGetDayRangeL(const TTime &, const TTime &, CalCommon::TCalTimeRange &)
IMPORT_C TBoolIsNullTimeL(TCalTime &)
IMPORT_C TBoolIsOnToday(const TTime &)
IMPORT_C TBoolIsValidDay(const TTime &)
IMPORT_C TTimeLimitToValidTime(const TTime &)
IMPORT_C TTimeMaxTime()
IMPORT_C TTimeMinTime()
IMPORT_C TTimeNow()
IMPORT_C TBoolOnSameDay(const TTime &, const TTime &)
IMPORT_C TBoolOnSameMonth(const TTime &, const TTime &)
IMPORT_C TTimeRoundToPreviousHour(const TTime &)
IMPORT_C TTimeIntervalMinutesRoundToPreviousHour(const TTimeIntervalMinutes &)
IMPORT_C TTimeIntervalMinutesTimeOfDay(const TTime &)
IMPORT_C TBoolTimeRangesIntersect(const TTime &, const TTime &, const TTime &, const TTime &)
IMPORT_C TTimeToday()
Private Member Functions
CalenDateUtils()
CalenDateUtils &operator=(const CalenDateUtils &)

Constructor & Destructor Documentation

CalenDateUtils()

CalenDateUtils()[private]

Member Functions Documentation

BeginningOfDay(const TTime &)

IMPORT_C TTimeBeginningOfDay(const TTime &aStartTime)[static]

Parameters

const TTime & aStartTimeTime representing the day for which the beginning is needed

DefaultTime(const TTime &)

IMPORT_C TTimeDefaultTime(const TTime &aDate)[static]

Parameters

const TTime & aDateThe date for reference

DisplayTimeOnDay(const TTime &, const TTime &)

IMPORT_C TTimeDisplayTimeOnDay(const TTime &aStartTime,
const TTime &aDay
)[static]

Parameters

const TTime & aStartTimeThe time to be checked
const TTime & aDayThe day to be used as reference

GetDayRangeL(const TTime &, const TTime &, CalCommon::TCalTimeRange &)

IMPORT_C voidGetDayRangeL(const TTime &aStartDay,
const TTime &aEndDay,
CalCommon::TCalTimeRange &aRange
)[static]

Parameters

const TTime & aStartDayDay for the range start
const TTime & aEndDayDay for the range end
CalCommon::TCalTimeRange & aRangeThe range returned

IsNullTimeL(TCalTime &)

IMPORT_C TBoolIsNullTimeL(TCalTime &aTime)[static]

Parameters

TCalTime & aTimeTime to be compared against NULL time

IsOnToday(const TTime &)

IMPORT_C TBoolIsOnToday(const TTime &aTime)[static]

Parameters

const TTime & aTimeThe time to check for

IsValidDay(const TTime &)

IMPORT_C TBoolIsValidDay(const TTime &aTime)[static]

Parameters

const TTime & aTimeaTime to be checked

LimitToValidTime(const TTime &)

IMPORT_C TTimeLimitToValidTime(const TTime &aTime)[static]

Parameters

const TTime & aTimeTime to be checked

MaxTime()

IMPORT_C TTimeMaxTime()[static]

MinTime()

IMPORT_C TTimeMinTime()[static]

Now()

IMPORT_C TTimeNow()[static]

OnSameDay(const TTime &, const TTime &)

IMPORT_C TBoolOnSameDay(const TTime &aX,
const TTime &aY
)[static]

Parameters

const TTime & aXTime being compared with
const TTime & aYTime to compare with

OnSameMonth(const TTime &, const TTime &)

IMPORT_C TBoolOnSameMonth(const TTime &aX,
const TTime &aY
)[static]

Parameters

const TTime & aXTime being compared with
const TTime & aYTime to compare with

RoundToPreviousHour(const TTime &)

IMPORT_C TTimeRoundToPreviousHour(const TTime &aTime)[static]

Parameters

const TTime & aTimeThe time to round off

RoundToPreviousHour(const TTimeIntervalMinutes &)

IMPORT_C TTimeIntervalMinutesRoundToPreviousHour(const TTimeIntervalMinutes &aMinutes)[static]

Parameters

const TTimeIntervalMinutes & aMinutesThe minute to round off

TimeOfDay(const TTime &)

IMPORT_C TTimeIntervalMinutesTimeOfDay(const TTime &aDateTime)[static]

Parameters

const TTime & aDateTimeThe reference time

TimeRangesIntersect(const TTime &, const TTime &, const TTime &, const TTime &)

IMPORT_C TBoolTimeRangesIntersect(const TTime &aXStart,
const TTime &aXEnd,
const TTime &aYStart,
const TTime &aYEnd
)[static]

Parameters

const TTime & aXStartStart time of first time range
const TTime & aXEndEnd time of first time range
const TTime & aYStartStart time of second time range
const TTime & aYEndEnd time of second time range

Today()

IMPORT_C TTimeToday()[static]

operator=(const CalenDateUtils &)

CalenDateUtils &operator=(const CalenDateUtils &)[private]

Parameters

const CalenDateUtils &