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
IlTimeUnitHour Class Reference

Hour time unit. More...

#include <ilog/date.h>

Inheritance diagram for IlTimeUnitHour:
IlTimeUnit

Public Member Functions

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

Detailed Description

Hour time unit.

Library: ilog

See Also
IlvTimeScaleStepsUpdater.

Member Function Documentation

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

Increments the given IlCalendar date by 1 hour.

Adds 1 hour to date.

Parameters
dateThe date to change.

Implements IlTimeUnit.

virtual IlTimeUnit* IlTimeUnitHour::copy ( ) const
virtual

Returns an IlTimeUnitHour.

Returns
A new IlTimeUnitHour.

Implements IlTimeUnit.

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

Snaps the given IlCalendar date to the last hour.

Sets cal minutes, seconds and milliseconds to 0.

Parameters
calThe date to change.

Implements IlTimeUnit.

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

Returns a string representing the date in hours.

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

Parameters
dateThe date to convert.
Returns
A string in the "HH:MN" format (e.g. "13:45")

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.