Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

d_Date Class Reference

#include <d_Date.h>

List of all members.

Public Types

enum  Weekday {
  Sunday = 0, Monday = 1, Tuesday = 2, Wednesday = 3,
  Thursday = 4, Friday = 5, Saturday = 6
}
enum  Month {
  January = 1, February = 2, March = 3, April = 4,
  May = 5, June = 6, July = 7, August = 8,
  September = 9, October = 10, November = 11, December = 12
}

Public Methods

 d_Date (void)
 d_Date (long julian_day)
 d_Date (unsigned short year, unsigned short month=1, unsigned short day=1)
 d_Date (const d_Date &)
 d_Date (const d_Timestamp &)
d_Date & operator= (const d_Date &)
d_Date & operator= (const d_Timestamp &)
void setDate (unsigned short year, unsigned short month, unsigned short day)
unsigned short year () const
unsigned short month () const
unsigned short day () const
unsigned short day_of_year () const
Weekday day_of_week () const
d_Date & next (Weekday)
d_Date & previous (Weekday)
d_Date & operator+= (const d_Interval &)
d_Date & operator+= (int ndays)
d_Date & operator++ ()
d_Date operator++ (int)
d_Date & operator-= (const d_Interval &)
d_Date & operator-= (int ndays)
d_Date & operator-- ()
d_Date operator-- (int)
d_Interval operator- (const d_Date &)
int is_leap_year () const
int is_between (const d_Date &, const d_Date &) const
int days_in_year () const
int days_in_month () const

Static Public Methods

d_Date current ()
int is_leap_year (unsigned short year)
int days_in_year (unsigned short)
int days_in_month (unsigned short, unsigned short)
int is_valid_date (unsigned short, unsigned short, unsigned short)


Detailed Description

SEE ALSO: d_Time, d_Timestamp


Member Enumeration Documentation

enum d_Date::Month
 

Enumeration values:
January 
February 
March 
April 
May 
June 
July 
August 
September 
October 
November 
December 

enum d_Date::Weekday
 

Enumeration values:
Sunday 
Monday 
Tuesday 
Wednesday 
Thursday 
Friday 
Saturday 


Constructor & Destructor Documentation

d_Date::d_Date void   
 

d_Date::d_Date long    julian_day
 

d_Date::d_Date unsigned short    year,
unsigned short    month = 1,
unsigned short    day = 1
 

d_Date::d_Date const d_Date &   
 

d_Date::d_Date const d_Timestamp  
 


Member Function Documentation

d_Date d_Date::current   [static]
 

unsigned short d_Date::day   const
 

Weekday d_Date::day_of_week   const
 

unsigned short d_Date::day_of_year   const
 

int d_Date::days_in_month   const
 

int d_Date::days_in_month unsigned    short,
unsigned    short
[static]
 

int d_Date::days_in_year   const
 

int d_Date::days_in_year unsigned    short [static]
 

int d_Date::is_between const d_Date &   ,
const d_Date &   
const
 

int d_Date::is_leap_year unsigned short    year [static]
 

int d_Date::is_leap_year   const
 

int d_Date::is_valid_date unsigned    short,
unsigned    short,
unsigned    short
[static]
 

unsigned short d_Date::month   const
 

d_Date& d_Date::next Weekday   
 

d_Date d_Date::operator++ int   
 

d_Date& d_Date::operator++  
 

d_Date& d_Date::operator+= int    ndays
 

d_Date& d_Date::operator+= const d_Interval  
 

d_Interval d_Date::operator- const d_Date &   
 

d_Date d_Date::operator-- int   
 

d_Date& d_Date::operator--  
 

d_Date& d_Date::operator-= int    ndays
 

d_Date& d_Date::operator-= const d_Interval  
 

d_Date& d_Date::operator= const d_Timestamp  
 

d_Date & d_Date::operator= const d_Date &   
 

d_Date& d_Date::previous Weekday   
 

void d_Date::setDate unsigned short    year,
unsigned short    month,
unsigned short    day
 

unsigned short d_Date::year   const
 


The documentation for this class was generated from the following files:
Generated on Fri Nov 29 17:12:14 2002 for Orient ODBMS Just Edition v. 2.0e by doxygen1.3-rc1