#include <FBwDate.h>
Inheritance diagram for FBwDate:

Public Methods | |
| FBwDate () | |
| Default constructor. | |
| FBwDate (long jdn) | |
| Constructor. | |
| FBwDate (int y, int m, int d) | |
| Constructor. | |
| FBwDate (const char *s) | |
| Constructor. | |
| FBwDate (const string &s) | |
| Constructor. | |
| FBwDate (const tm &tim) | |
| Constructor. | |
| FBwDate (const FBwDate &d) | |
| Copy conrtuctor. | |
| FBwDate & | operator= (const FBwDate &d) |
| Asignment operator. | |
| void | IncMonth (int nMon) |
| Transform date to same day on next month. | |
| int | operator< (const FBwDate &d) const |
| less than operator | |
| int | operator<= (const FBwDate &d) const |
| less or equal than operator | |
| int | operator== (const FBwDate &d) const |
| equality operator | |
| int | operator!= (const FBwDate &d) const |
| inequality operator | |
| int | operator== (const string &d) const |
| compares for equality | |
| int | operator> (const FBwDate &d) const |
| greater than operator | |
| int | operator>= (const FBwDate &d) const |
| greater or equal than operator | |
| FBwDate & | operator++ () |
| preincrement operator | |
| FBwDate | operator+ (long v) const |
| Day Add operator. | |
| FBwDate & | operator+= (long v) |
| Day Inplace Add operator. | |
| FBwDate | operator- (long v) const |
| substraction operator | |
| FBwDate & | operator-= (long v) |
| inplace substraction operator | |
| long | operator- (const FBwDate &d) const |
| substraction operator | |
| string | DateString (const char *format=0) const |
| date as a formated string | |
| long | DateNum () const |
| returns number of days from reference to current date | |
| int | dayofw () const |
| Returns a number representing the day of the week. | |
| void | CurrentDate () |
| sets date as the current day | |
| time_t | MkDate (tm *tim) const |
| converts Date to time_t structure | |
| int | DayOfYear () const |
| Gets number representing day of the year from 0 to 365. | |
| string | NameOfDay () const |
| Gets name of day using current locale. | |
| string | NameOfMonth () const |
| Gets name of month using current locale. | |
| string | AbNameOfDay () const |
| Gets abreviated name of day using current locale. | |
| string | AbNameOfMonth () const |
| Gets abreviated name of month using current locale. | |
| void | EncodeDate (int Year, int Month, int Day) |
| sets date from Year, Month and Day values | |
| void | DecodeDate (int &Y, int &M, int &D) const |
| gets Year, Day and Month values from date | |
| virtual const char * | GetFormat () |
Public Attributes | |
| FBwDate | FirstOfMonth () const |
| Gets first day of month. | |
| FBwDate | LastOfMonth () const |
| Gets last day of month. | |
| FBwDate | FirstOfWeek () const |
| Gets first day of week. | |
| FBwDate | LastOfWeek () const |
| Gets last day of week. | |
| FBwDate | FirstOfYear () const |
| Gets first day of year. | |
| FBwDate | LastOfYear () const |
| Gets last day of year. | |
Protected Methods | |
| virtual void | ParseDate (const char *s, long &Y, long &M, long &D) |
| parses a string to get date | |
| int | AdjustCentury (int Y) |
| Adjusts century for 2 digit years. | |
| void | SetDate (long dn) |
Friends | |
| void | SetDefaultDateFormat (const char *form) |
| Sets default format for DateString. | |
| void | SetEpoch (int Year, int Century) |
| Sets epoch. | |
|
|
Constructor. Sets date to reference date plus jdn where reference date is: 12/15/1582 /mm/dd/yyyy |
|
||||||||||||||||
|
Constructor. Sets date from year, month day value
|
|
|
Constructor. Sets date after parsing s |
|
|
Constructor. Sets date after parsing s |
|
|
Constructor. Sets date from standard c tm struct |
|
|
date as a formated string format paramater like strftime, formated string must not exceed MX_FRMDATE chars. If format==0 then the small date format is applied, currently is x |
|
|
Returns a number representing the day of the week. -Days of the Week:
|
|
|
Transform date to same day on next month. For ex. if date is '15/12/2002' then after IncMonth(1) the date will be '15/1/2003'. In case of current date is 1/29.... the date obtained is 2/28... for non leap years |
|
|
Day Add operator. The resulting date is the current date plus v days |
|
|
Day Inplace Add operator. The current date is the current date plus v days |
|
||||||||||||||||||||
|
parses a string to get date Parses a string to get Year,Month and day values
|
1.2.17