rwlogo
Rogue Wave Views 5.5.1

Rogue Wave Views
Foundation Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlTimeUnitDay Class Reference

Day time unit. More...

#include <ilog/date.h>

Inheritance diagram for IlTimeUnitDay:
IlTimeUnit

List of all members.

Public Member Functions

 IlTimeUnitDay ()
 Constructor.
virtual void addTimeUnit (IlCalendar &cal) const
 Increments the given IlCalendar date by 1 day.
virtual IlTimeUnitcopy () const
 Return a IlTimeUnitDay.
virtual IlDouble getMillis () const
 returns the duration of this time unit in milliseconds.
virtual void snapToPreviousTimeUnit (IlCalendar &cal) const
 Snaps the given IlCalendar date to the last day.
virtual char * toString (IlDate date) const
 Returns a string representing the date in days.

Detailed Description

Day time unit.

Library: ilog

See also:
IlvTimeScaleStepsUpdater

Member Function Documentation

virtual void IlTimeUnitDay::addTimeUnit ( IlCalendar cal  )  const [virtual]

Increments the given IlCalendar date by 1 day.

Add 1 day to cal.

Parameters:
cal The date to change.

Implements IlTimeUnit.

virtual IlTimeUnit* IlTimeUnitDay::copy (  )  const [virtual]

Return a IlTimeUnitDay.

Returns:
a IlTimeUnitDay.

Implements IlTimeUnit.

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

Snaps the given IlCalendar date to the last day.

Sets cal hours, minutes, seconds and milliseconds to 0.

Parameters:
cal The date to change.

Implements IlTimeUnit.

virtual char* IlTimeUnitDay::toString ( IlDate  date  )  const [virtual]

Returns a string representing the date in days.

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

Parameters:
date : the date to convert.
Returns:
a string in the "DD/MM" format (e.g. 01/12 for dec. 1st).

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