rwlogo
Rogue Wave Views 5.5.1

Rogue Wave Views
Foundation Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlTimeUnitQuarter Class Reference

Quarter time unit. More...

#include <ilog/date.h>

Inheritance diagram for IlTimeUnitQuarter:
IlTimeUnit

List of all members.

Public Member Functions

 IlTimeUnitQuarter ()
 Constructor.
virtual void addTimeUnit (IlCalendar &cal) const
 Increments the given IlCalendar date by 1 quarter.
virtual IlTimeUnitcopy () const
 Return a IlTimeUnitQuarter.
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 quarter.
virtual char * toString (IlDate date) const
 Returns a string representing the date in quarters.

Detailed Description

Quarter time unit.

Library: ilog

See also:
IlvTimeScaleStepsUpdater

Member Function Documentation

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

Increments the given IlCalendar date by 1 quarter.

Add 1 quarter to cal.

Parameters:
cal The date to change.

Implements IlTimeUnit.

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

Return a IlTimeUnitQuarter.

Returns:
a IlTimeUnitQuarter.

Implements IlTimeUnit.

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

Snaps the given IlCalendar date to the last quarter.

Sets cal to the first day of the quarter at 00:00.

Parameters:
cal The date to change.

Implements IlTimeUnit.

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

Returns a string representing the date in quarters.

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

Parameters:
date : the date to convert.
Returns:
a string of the "Qn YYYY" format, 'n' being the number of the quarter (1 to 4) (e.g. "Q2 2001" for 2nd quarter of 2001).

© 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.