cubic
asked on
date routines
I need a suite of date functions that provides at least:
1. gregorian to julian conversion
2. julian to gregorian conversion
Do you know of a site where I can get these for free. Is there a book you can recommend that provides source code.
thx in advance.
1. gregorian to julian conversion
2. julian to gregorian conversion
Do you know of a site where I can get these for free. Is there a book you can recommend that provides source code.
thx in advance.
ASKER
As best as I can tell -- the site you recommend does not show the source code for the date functions.
Any other sites that show source code (for free) for julian date routines (and hopefully other date routines as well)?
thx.
Any other sites that show source code (for free) for julian date routines (and hopefully other date routines as well)?
thx.
It's not exactly what you're looking for, but it conatins the algorithms used for conversion:
http://www.cpan.org/modules/by-authors/Sullivan_Beck/DateManip-5.34.tar.gz
http://www.cpan.org/modules/by-authors/Sullivan_Beck/DateManip-5.34.tar.gz
can you find something here ?
http://www.webcrawler.com/cgi-bin/WebQuery?text=C+function+to+convert+julian+date+to+gregorian
http://www.webcrawler.com/cgi-bin/WebQuery?text=C+function+to+convert+julian+date+to+gregorian
I have a pair of routines that converts between normal calendar dates (gregorian) and pseudo-julian (using Jan 1 1900 as day 0). If you're interested I can post them as an answer.
My first reaction is 'just do it' - after all, that's what I did, and apparently whan imladris did. But why isn't something so basic in the RTL?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://www.magnet.ch/serendipity/hermetic/cfunlib/datlib/datedoc.htm