Rogue Wave Views
Foundation Package API Reference Guide
Product Documentation:

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

Minute time unit. More...

#include <ilog/date.h>

Inheritance diagram for IlTimeUnitMinute:
IlTimeUnit

Public Member Functions

 IlTimeUnitMinute ()
 Constructor.
 
virtual void addTimeUnit (IlCalendar &date) const
 Increments the given IlCalendar date by 1 minute. More...
 
virtual IlTimeUnitcopy () const
 Returns an IlTimeUnitMinute. 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 the last minute. More...
 
virtual char * toString (IlDate date) const
 Returns a string representing the date in minutes. More...
 
- Public Member Functions inherited from IlTimeUnit
 IlTimeUnit ()
 Constructor.
 

Detailed Description

Minute time unit.

Library: ilog

See also
IlvTimeScaleStepsUpdater.

Member Function Documentation

§ addTimeUnit()

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

Increments the given IlCalendar date by 1 minute.

Adds 1 minute to date.

Parameters
dateThe date to change.

Implements IlTimeUnit.

§ copy()

virtual IlTimeUnit* IlTimeUnitMinute::copy ( ) const
virtual

Returns an IlTimeUnitMinute.

Returns
A new IlTimeUnitMinute.

Implements IlTimeUnit.

§ getMillis()

virtual IlDouble IlTimeUnitMinute::getMillis ( ) const
virtual

Returns the duration of this time unit in milliseconds.

Returns
The duration of this time unit in milliseconds.

Implements IlTimeUnit.

§ snapToPreviousTimeUnit()

virtual void IlTimeUnitMinute::snapToPreviousTimeUnit ( IlCalendar date) const
virtual

Snaps the given IlCalendar date to the last minute.

Sets date seconds and milliseconds to 0.

Parameters
dateThe date to change.

Implements IlTimeUnit.

§ toString()

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

Returns a string representing the date in minutes.

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

Parameters
date: the date to convert.

Implements IlTimeUnit.


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