calendar_date


Represents a particular day in any given year. Instances of this class can be constructed to represent things like "the second Tuesday of March," "the fourth day of August," and so forth. The result is the proper date for any specified year.

Library

Time<ToolKit>

Declaration

#include <ospace/time/calendar.h>

class os_calendar_date

Interface

Constructor
os_calendar_date( const os_time_period& time , os_month_t month , os_day_t day )
Constructs a calendar date that is day of month with time elapsed.

Throws: os_time_toolkit_error

Constructor
os_calendar_date( const os_time_period& time , os_month_t month , os_which_one week , os_weekday_t weekday )
Constructs a calendar date that is weekday of week of month , with time elapsed.

Throws: os_time_toolkit_error

Constructor
os_calendar_date( const os_calendar_date& date )
Constructs a copy of date .
=
os_calendar_date& operator=( const os_calendar_date& date )
Assigns date to calendar date.
date
os_date date( os_year_t year ) const
Returns a date based on the specified year .

Throws: os_time_toolkit_error

day
os_day_t day() const
Returns the day.
day
void day( os_day_t day )
Sets day to day .

Throws: os_time_toolkit_error

month
os_month_t month() const
Returns the month.
month
void month( os_month_t month )
Sets the month to month .

Throws: os_time_toolkit_error

time
os_time time() const
Returns the time.
week
os_which_one week() const
Returns the week of the month specified in constructor.
weekday
os_weekday_t weekday() const
Returns the weekday.
weekday
void weekday( os_which_one week , os_weekday_t weekday )
Sets week to week and weekday to weekday .

Throws: os_time_toolkit_error

when
os_time_period when() const
Returns the time.
when
void when( const os_time_period& time )
Sets time to time .

Throws: os_time_toolkit_error


Copyright©1994-2026 Recursion Software LLC
All Rights Reserved - For use by licensed users only.