Results 1 to 2 of 2
Hi Guys?
I need help with a certain program. I have to write a program to perform date arithmetic, such as how many days there are between 6/1/90 and 8/3/92. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 06-27-2012 #1Just Joined!
- Join Date
- Jul 2008
- Posts
- 9
Date Arithmetic
Hi Guys?
I need help with a certain program. I have to write a program to perform date arithmetic, such as how many days there are between 6/1/90 and 8/3/92. And I have to inlcude specification and code design.
- 06-27-2012 #2Linux Guru
- Join Date
- Apr 2009
- Location
- I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
- Posts
- 10,160
First, convert the date to julian format (just a big number), do the date arithmetic, and convert back to a normalized date value. This algorithm from the Wikipedia works: Julian day - Wikipedia, the free encyclopedia
Sometimes, real fast is almost as good as real time.
Just remember, Semper Gumbi - always be flexible!


Reply With Quote
