Millisecond time unit. More...
#include <ilog/date.h>
Public Member Functions | |
IlTimeUnitMilliSecond () | |
Constructor. | |
virtual void | addTimeUnit (IlCalendar &date) const |
Increments the given IlCalendar date by 1 millisecond. More... | |
virtual IlTimeUnit * | copy () 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. | |
Millisecond time unit.
Library: ilog
IlvTimeScaleStepsUpdater
.
|
virtual |
Increments the given IlCalendar
date by 1 millisecond.
Adds 1 millisecond to date.
date | The date to change. |
Implements IlTimeUnit.
|
virtual |
|
virtual |
Returns the duration of this time unit in milliseconds.
Implements IlTimeUnit.
|
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.
cal | The date to change |
Implements IlTimeUnit.
|
virtual |
Returns a string representing the date in milliseconds.
Returns an allocated string which should be deleted with delete []
.
date | The date to convert. |
Implements IlTimeUnit.