rwlogo
Rogue Wave Views 5.6

Rogue Wave Views
Foundation Package API Reference Guide

Product Documentation:

Rogue Wave Views
Documentation Home

IlvTimeUtil Class Reference

Utility class for dealing with dates and calendars. More...

#include <ilviews/graphics/timescale.h>

List of all members.

Static Public Member Functions

static IlDate add (IlDate date, IlvDuration delta)
 Returns a new IlDate that is the sum of the specified date and duration.
static void dayFloor (IlCalendar &calendar)
 Truncates the given IlCalendar downwards to the nearest day boundary.
static void halfDayFloor (IlCalendar &calendar)
 Truncates the given IlCalendar downwards to the nearest half-day or AM-PM boundary.
static void hourFloor (IlCalendar &calendar)
 Truncates the given IlCalendar downwards to the nearest hour boundary.
static void minuteFloor (IlCalendar &calendar)
 Truncates the given IlCalendar downwards to the nearest minute boundary.
static void monthFloor (IlCalendar &calendar)
 Truncates the given IlCalendar downwards to the nearest month boundary.
static IlDate subtract (IlDate date, IlvDuration delta)
 Returns a new IlDate that is the specified date minus the specified duration.
static void weekFloor (IlCalendar &calendar)
 Truncates the given IlCalendar downwards to the nearest week boundary.
static void yearFloor (IlCalendar &calendar)
 Truncates the given IlCalendar downwards to the nearest year boundary.

Detailed Description

Utility class for dealing with dates and calendars.

Library: views

This class holds a number of static methods that are of general use when working with IlDate and IlCalendar


Member Function Documentation

static IlDate IlvTimeUtil::add ( IlDate  date,
IlvDuration  delta 
) [static]

Returns a new IlDate that is the sum of the specified date and duration.

Parameters:
date The date.
delta The duration to add to the date.
static void IlvTimeUtil::dayFloor ( IlCalendar calendar  )  [static]

Truncates the given IlCalendar downwards to the nearest day boundary.

Parameters:
calendar The calendar.
static void IlvTimeUtil::halfDayFloor ( IlCalendar calendar  )  [static]

Truncates the given IlCalendar downwards to the nearest half-day or AM-PM boundary.

Parameters:
calendar The calendar.
static void IlvTimeUtil::hourFloor ( IlCalendar calendar  )  [static]

Truncates the given IlCalendar downwards to the nearest hour boundary.

Parameters:
calendar The calendar.
static void IlvTimeUtil::minuteFloor ( IlCalendar calendar  )  [static]

Truncates the given IlCalendar downwards to the nearest minute boundary.

Parameters:
calendar The calendar.
static void IlvTimeUtil::monthFloor ( IlCalendar calendar  )  [static]

Truncates the given IlCalendar downwards to the nearest month boundary.

Parameters:
calendar The calendar.
static IlDate IlvTimeUtil::subtract ( IlDate  date,
IlvDuration  delta 
) [static]

Returns a new IlDate that is the specified date minus the specified duration.

Parameters:
date The date.
delta The duration to subtract from the date.
static void IlvTimeUtil::weekFloor ( IlCalendar calendar  )  [static]

Truncates the given IlCalendar downwards to the nearest week boundary.

Parameters:
calendar The calendar.
static void IlvTimeUtil::yearFloor ( IlCalendar calendar  )  [static]

Truncates the given IlCalendar downwards to the nearest year boundary.

Parameters:
calendar The calendar.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

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