Quarter time unit. More...
#include <ilog/date.h>
Public Member Functions | |
IlTimeUnitQuarter () | |
Constructor. | |
virtual void | addTimeUnit (IlCalendar &date) const |
Increments the given IlCalendar date by 1 quarter. More... | |
virtual IlTimeUnit * | copy () const |
Returns an IlTimeUnitQuarter . 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 last quarter. More... | |
virtual char * | toString (IlDate date) const |
Returns a string representing the date in quarters. More... | |
Public Member Functions inherited from IlTimeUnit | |
IlTimeUnit () | |
Constructor. | |
Quarter time unit.
Library: ilog
IlvTimeScaleStepsUpdater
.
|
virtual |
Increments the given IlCalendar
date by 1 quarter.
Adds 1 quarter 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 last quarter.
Sets cal to the first day of the quarter at 00:00.
cal | The date to change. |
Implements IlTimeUnit.
|
virtual |
Returns a string representing the date in quarters.
Returns an allocated string which should be deleted with delete []
.
date | The date to convert. |
Implements IlTimeUnit.