rwlogo

Rogue Wave Views
Foundation Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
List of all members | Public Member Functions
IlTimeUnitSecond Class Reference

Second time unit. More...

#include <ilog/date.h>

Inheritance diagram for IlTimeUnitSecond:
IlTimeUnit

Public Member Functions

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

Detailed Description

Second time unit.

Library: ilog

See Also
IlvTimeScaleStepsUpdater.

Member Function Documentation

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

Increments the given IlCalendar date by 1 second.

Adds 1 second to date.

Parameters
dateThe date to change.

Implements IlTimeUnit.

virtual IlTimeUnit* IlTimeUnitSecond::copy ( ) const
virtual

Returns an IlTimeUnitSecond.

Returns
A new IlTimeUnitSecond.

Implements IlTimeUnit.

virtual IlDouble IlTimeUnitSecond::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 IlTimeUnitSecond::snapToPreviousTimeUnit ( IlCalendar date) const
virtual

Snaps the given IlCalendar date to 0 milliseconds.

Sets milliseconds of cal to 0.

Parameters
dateThe date to change.

Implements IlTimeUnit.

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

Returns a string representing the date in seconds.

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

Parameters
dateThe date to convert.

Implements IlTimeUnit.


© Copyright 2015, 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.