#include <ODATE.H>
List of all members.
Definition at line 16 of file ODATE.H.
Add months to the given julian date.
<int> inDate = the input julian date <int> addMonth = the no. of months to add
return : <int> - the result julian date
Definition at line 347 of file ODATE.CPP.
Convert from julian date format to string date format Return a date string in the format of DD MMM YYYY e.g. 15 Jan 1992
Julian day is the number of days since the date Jan 1, 4713 BC Ex. Jan 1, 1981 is 2444606
<long> julianDate = the julian date to be converted [int] shortMonthStr = short month string or not (e.g. Jan instead of January) (default : 0) [int] showDate = show date or not (default : 1)
Return : <char*> the formated date string
Definition at line 159 of file ODATE.CPP.
References JULIAN_ADJUSTMENT, and NULL.
[inline]
Definition at line 27 of file ODATE.H.
References get_date().
Referenced by day_year().
Returns an (int) day of the year starting from 1. Ex. Jan 1, returns 1
Returns -1 if it is an illegal date.
Definition at line 235 of file ODATE.CPP.
References day(), month(), and year().
return the no. of days in a given month
<int> inMonth = the specified month
return : <int> = the no. of days in a given monthh
Definition at line 332 of file ODATE.CPP.
Definition at line 369 of file ODATE.CPP.
Return year, month or day of the given julian date
<long> julianDate = the julian date to be converted <char> returnType = 'Y'-year, 'M'-month, 'D'-day
Return : the year, month or day of the julian date -1 if the julian date passed is invalid
Definition at line 95 of file ODATE.CPP.
References JULIAN_ADJUSTMENT.
Referenced by day(), month(), and year().
Convert a string such as "07/03/93" to long number
Returns: <int> >0 - Julian day That is the number of days since the date Jan 1, 4713 BC Ex. Jan 1, 1981 is 2444606 0 - NULL Date (dbf_date is all blank) -1 - Illegal Date
Definition at line 78 of file ODATE.CPP.
Convert from year, month, day integer format to julian date format
<int> year, month, day = the components of the date
Return : <long> the julian date -1 illegal given date
Definition at line 50 of file ODATE.CPP.
Definition at line 26 of file ODATE.H.
<int> monthNo = the month (1-12)
Return : <char*> the month string
Definition at line 221 of file ODATE.CPP.
Given a integer as time and then return the time string
<int> inTime = the time in integer format (e.g. 1600 --> "16:00" )
Definition at line 308 of file ODATE.CPP.
Definition at line 25 of file ODATE.H.