Rogue Wave Views Foundation Package API Reference Guide |
Rogue Wave Views Documentation Home |
Year time unit. More...
#include <ilog/date.h>
Public Member Functions | |
IlTimeUnitYear () | |
Constructor. | |
virtual void | addTimeUnit (IlCalendar &date) const |
Increments the given IlCalendar date by 1 year. More... | |
virtual IlTimeUnit * | copy () const |
Returns an IlTimeUnitYear . 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 year. More... | |
virtual char * | toString (IlDate date) const |
Returns a string representing the date in years. More... | |
Public Member Functions inherited from IlTimeUnit | |
IlTimeUnit () | |
Constructor. | |
Year time unit.
Library: ilog
IlvTimeScaleStepsUpdater
.
|
virtual |
Increments the given IlCalendar
date by 1 year.
Adds 1 year 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 year.
Sets cal to the first day of the year at 00:00.
cal | The date to change. |
Implements IlTimeUnit.
|
virtual |
Returns a string representing the date in years.
Returns an allocated string which should be deleted with delete []
.
date | The 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.