Rogue Wave Views
Foundation Package API Reference Guide
Product Documentation:

Rogue Wave Views
Documentation Home
List of all members | Public Member Functions
IlTimeUnitMilliSecond Class Reference

Millisecond time unit. More...

#include <ilog/date.h>

Inheritance diagram for IlTimeUnitMilliSecond:
IlTimeUnit

Public Member Functions

 IlTimeUnitMilliSecond ()
 Constructor.
 
virtual void addTimeUnit (IlCalendar &date) const
 Increments the given IlCalendar date by 1 millisecond. More...
 
virtual IlTimeUnitcopy () const
 Returns an IlTimeUnitMilliSecond. More...
 
virtual IlDouble getMillis () const
 Returns the duration of this time unit in milliseconds. More...
 
virtual void snapToPreviousTimeUnit (IlCalendar &cal) const
 Snaps the given IlCalendar date to the previous time unit. More...
 
virtual char * toString (IlDate date) const
 Returns a string representing the date in milliseconds. More...
 
- Public Member Functions inherited from IlTimeUnit
 IlTimeUnit ()
 Constructor.
 

Detailed Description

Millisecond time unit.

Library: ilog

See also
IlvTimeScaleStepsUpdater.

Member Function Documentation

virtual void IlTimeUnitMilliSecond::addTimeUnit ( IlCalendar date) const
virtual

Increments the given IlCalendar date by 1 millisecond.

Adds 1 millisecond to date.

Parameters
dateThe date to change.

Implements IlTimeUnit.

virtual IlTimeUnit* IlTimeUnitMilliSecond::copy ( ) const
virtual

Returns an IlTimeUnitMilliSecond.

Returns
A new IlTimeUnitMilliSecond.

Implements IlTimeUnit.

virtual IlDouble IlTimeUnitMilliSecond::getMillis ( ) const
virtual

Returns the duration of this time unit in milliseconds.

Returns
The duration of this time unit in milliseconds.

Implements IlTimeUnit.

virtual void IlTimeUnitMilliSecond::snapToPreviousTimeUnit ( IlCalendar cal) const
virtual

Snaps the given IlCalendar date to the previous time unit.

In the case of milliseconds, this doesn't change the date since milliseconds are the lowest unit available.

Parameters
calThe date to change

Implements IlTimeUnit.

virtual char* IlTimeUnitMilliSecond::toString ( IlDate  date) const
virtual

Returns a string representing the date in milliseconds.

Returns an allocated string which should be deleted with delete [].

Parameters
dateThe date to convert.

Implements IlTimeUnit.


© Copyright 2016, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.