For an exercise I'm working on my own class to represent dates.
As my math is kinda hopeless can anyone please supply a formula to convert a
gregorian date to a julian day number ( from the year -4712) and back again?
I have day, month and year stored as integers - i don't want to worry about
the time.