.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "cepDate" "3" "26 November 2002" "" ""
.SH NAME
cepDate \- Converts a decimal date in the format of YYYY.DDDD, where YYYY is a four
.SH SYNOPSIS
.nf
To create a cepDate object to convert a decimal date to a Gregorian date use:-
cepDate date(value);
value:- The decimal value to be converted. It must be of the form
YYYY.DDDD where YYYY is the four digit year and DDDD is the decimal represenation
of the number of days into the year
To create a cepDate object to convert a Gregorian date to a decimal date use:-
cepDate date(day, month, year);
day:- interger value of the day of the month from 1..31
month:- the name of the month. This can be either Jan...Dec or
January...December
year:- interger value of the year
.fi
.SH "DESCRIPTION"
.PP
An implementation of the cepDate class
converts a decimal date to a Gegorian date or a Gregorian date to a decimal.
const string getDay()
returns day of month in the format of 01...31. A return value of -1 indicates
an error because the date entered was invalid.
const string getMonth()
returns month in the format of 01...12. A return value of -1 indicates
an error because the date entered was invalid.
const string getMonthName()
returns month as a string in the format of January...December
const string getShortMonthName()
returns month as a string in the format of Jan...Dec
const string getYear()
returns year in the format of YYYY. A return value of -1 indicates
an error because the date entered was invalid.
const string getShortDate()
returns date in short date in the format of DD/MM/YY
const string getLongDate()
returns date in long date date in the format of DD MMMMMM YY
const string getDecimalDate()
returns the date as a decimal date in the form YYYY.DDDD. A return value of -1 indicates
an error because the date entered was invalid.
2 new methods added yearsToJulian and julianToYears. Both take and return doubles
and have no relation to the member variables of this object.
.SH "VERSION"
.PP
This documentation was generated for the \fBGeodetic Data Manipulation System\fR 0.1 by \fBautodocbook\fR (http://www.stillhq.com).
.SH "AUTHOR"
.PP
The \fBGeodetic Data Manipulation System\fR is under development by Michael Still (mikal@stillhq.com), Daniel Fernandez, Kristy Van Der Vlist, Blake Swadling, and Nick Wheatstone. All code is Copyright 2002 Michael Still, Daniel Fernandez, Kristy Van Der Vlist, Blake Swadling and Nick Wheatstone, and is released under the GNU GPL. Code submissions are welcomed. Contact Michael at the address above if you have something you would like to contribute.
.SH "BUGS"
.PP
There are no known bugs in the \fBGeodetic Data Manipulation System\fR. If you find one, please contact mikal@stillhq.com and let me know.