The IMMHourMinSecTime datatype class represents the hours-minutes-seconds (HHMMSS) time format.
You can construct and destruct objects of this class.
![]() |
public:
virtual ~IMMHourMinSecTime()
Windows | OS/2 | AIX |
Yes | Yes | No |
![]() |
public:
IMMHourMinSecTime(const IMMTime& time)
Windows | OS/2 | AIX |
Yes | Yes | No |
public:
IMMHourMinSecTime(const IMMHourMinSecTime& time)
Windows | OS/2 | AIX |
Yes | Yes | No |
public:
IMMHourMinSecTime(unsigned long value = defaultTime)
You can construct an IMMHourMinSecTime from the following:
Windows | OS/2 | AIX |
Yes | Yes | No |
Use these functions to parse the time into normal time values, for example, hours, minutes, and seconds.
![]() |
public:
virtual unsigned long hours() const
Returns the hours component of the time.
Windows | OS/2 | AIX |
Yes | Yes | No |
![]() |
public:
virtual unsigned long minutes() const
Returns the minutes component of the time. This is in the range of 0 to 59.
Windows | OS/2 | AIX |
Yes | Yes | No |
![]() |
public:
virtual unsigned long seconds() const
Returns the seconds component of the time. This is in the range of 0 to 59.
Windows | OS/2 | AIX |
Yes | Yes | No |
Use these members to cast the time to an unsigned long.
![]() |
public:
virtual operator unsigned long() const
Returns the time as a unsigned long in the following format (RRSSMMHH):
Windows | OS/2 | AIX |
Yes | Yes | No |
Use these members to return the time as a string.
![]() |
public:
virtual IString asString() const
Returns the time value as a string formatted as HH:MM:SS.
Windows | OS/2 | AIX |
Yes | Yes | No |
Use these ordinal number functions for indicating generic positions. A time
object returns an ordinal number, which represents
the time at some particular granularity. This is useful for something
that allows seeking and displays position, such as a slider. Because sliders
generally do not process time values, use an ordinal number
to establish the range of slider values. Ordinal numbers can be
mathematically manipulated and converted back to time values, if necessary.
Note:
![]() |
public:
virtual unsigned long ordinal() const
Returns the time value in total seconds.
Windows | OS/2 | AIX |
Yes | Yes | No |
![]() |
public:
virtual IMMTime& setTimeToOrdinal(unsigned long ordinal)
Sets the time object to the value represented by the ordinal number (in seconds).
Windows | OS/2 | AIX |
Yes | Yes | No |
virtual ~IMMTime()
virtual unsigned long asMMTime() const
virtual unsigned long hundredths() const
IMMTime(unsigned long time = defaultTime)
IMMTime(const IMMTime& time)
virtual bool isValid() const
bool operator !=(const IMMTime& time) const
IMMTime operator +(const IMMTime& time) const
IMMTime& operator +=(const IMMTime& time)
IMMTime operator -(const IMMTime& time) const
IMMTime& operator -=(const IMMTime& time)
bool operator <(const IMMTime& time) const
bool operator <=(const IMMTime& time) const
IMMTime& operator =(const IMMTime& time)
bool operator ==(const IMMTime& time) const
bool operator >(const IMMTime& time) const
bool operator >=(const IMMTime& time) const
virtual unsigned long thousandths() const
static const unsigned long defaultTime
IMMTime& setMMTime(unsigned long newTime)
IMMTime& setValid(bool Valid = true)