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

FXEX::FXJulianDate Class Reference

Julian date to Gregorian data object. More...

#include <FXJulianDate.h>

List of all members.

Public Methods

 FXJulianDate ()
 FXJulianDate (FXint yr, FXint mo, FXint da)
void setDate (FXint y, FXint m, FXint d)
void today ()
FXint day ()
FXint month ()
FXint year ()
FXint daysInMonth ()
FXint dayOfWeek ()
FXint dayOfYear ()
FXbool leapYear (FXint y)
const FXchar * monthName (FXint month) const
const FXchar * dayName (FXint day) const
virtual ~FXJulianDate ()

Friends

FXStream & operator<< (FXStream &store, const FXJulianDate &d)
FXStream & operator>> (FXStream &store, FXJulianDate &d)


Detailed Description

Julian date to Gregorian data object.

Definition at line 31 of file FXJulianDate.h.


Constructor & Destructor Documentation

FXEX::FXJulianDate::FXJulianDate (  ) 
 

use today's date.

FXEX::FXJulianDate::FXJulianDate (  FXint yr,
FXint mo,
FXint da
) 
 

use specific date.

virtual FXEX::FXJulianDate::~FXJulianDate (  )  [inline, virtual]
 

dtor.

Definition at line 69 of file FXJulianDate.h.


Member Function Documentation

void FXEX::FXJulianDate::setDate (  FXint y,
FXint m,
FXint d
) 
 

set the adte to a specific date.

void FXEX::FXJulianDate::today (  ) 
 

set it to today's date.

FXint FXEX::FXJulianDate::day (  ) 
 

accessors.

FXint FXEX::FXJulianDate::month (  ) 
 

FXint FXEX::FXJulianDate::year (  ) 
 

FXint FXEX::FXJulianDate::daysInMonth (  ) 
 

FXint FXEX::FXJulianDate::dayOfWeek (  ) 
 

FXint FXEX::FXJulianDate::dayOfYear (  ) 
 

FXbool FXEX::FXJulianDate::leapYear (  FXint y ) 
 

is the value a leap year.

const FXchar* FXEX::FXJulianDate::monthName (  FXint month )  const
 

get the name of the month.

const FXchar* FXEX::FXJulianDate::dayName (  FXint day )  const
 

get the name of the day.


Friends And Related Function Documentation

FXStream& operator<< (  FXStream & store,
const FXJulianDate & d
)  [friend]
 

save to stream.

FXStream& operator>> (  FXStream & store,
FXJulianDate & d
)  [friend]
 

load from stream.