Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

[Index] [Glossary] [Previous] [Next]



Location: e32std.h
Link against:

Class TTimeIntervalBase

TTimeIntervalBase

Support

Supported from 5.0

Description

Provides a base class for all time interval classes using a 32-bit representation.

It supports retrieving the interval and provides various operations for comparing intervals. Its concrete derived classes can be added to and subtracted from a TTime.

The comparison operators simply compare the integer representations of the two intervals. They do not take account of different time interval units. So, for example, when comparing for equality an interval of three hours with an interval of three days, the result is true.

Defined in TTimeIntervalBase:
Int(), operator!=(), operator<(), operator<=(), operator==(), operator>(), operator>=()


Comparison operators


operator==()

TBool operator==(TTimeIntervalBase aInterval) const;

Description

Tests whether two time intervals are equal.

Parameters

TTimeIntervalBase aInterval

The time interval to compare with this time interval.

Return value

TBool

True if the two time intervals are equal. False if not equal.


operator!=()

TBool operator!=(TTimeIntervalBase aInterval) const;

Description

Tests whether two time intervals are not equal.

Parameters

TTimeIntervalBase aInterval

The time interval to compare with this time interval.

Return value

TBool

True if the two time intervals differ. False if equal.


operator>=()

TBool operator>=(TTimeIntervalBase aInterval) const;

Description

Tests whether one time interval is greater than or equal to another.

Parameters

TTimeIntervalBase aInterval

The time interval to compare with this time interval.

Return value

TBool

True if the first time interval is greater than or equal to the second. False if not.


operator<=()

TBool operator<=(TTimeIntervalBase aInterval) const;

Description

Tests whether one time interval is less than or equal to another.

Parameters

TTimeIntervalBase aInterval

The time interval to compare with this time interval.

Return value

TBool

True if the first time interval is less than or equal to the second. False if not.


operator>()

TBool operator>(TTimeIntervalBase aInterval) const;

Description

Tests whether one time interval is greater than another.

Parameters

TTimeIntervalBase aInterval

The time interval to compare with this time interval.

Return value

TBool

True if the first time interval is greater than the second. False if not.


operator<()

TBool operator<(TTimeIntervalBase aInterval) const;

Description

Tests whether one time interval is less than another.

Parameters

TTimeIntervalBase aInterval

The time interval to compare with this time interval.

Return value

TBool

True if the first time interval is less than the second. False if not.

[Top]


Integer representation


Int()

TInt Int() const;

Description

Gets the time interval as a 32 bit integer.

Return value

TInt

The time interval as a 32 bit integer.