How accurate would it be to find elapsed time using two fractional Julian day numbers, subtracting them then converting it into Years, Months, Days,Hours, Minutes, Seconds. If it is how would I go about doing it taking into account leap years and such. Edit: I'm trying to do this in java
Asked
Active
Viewed 231 times
– Quesurfin Nov 05 '12 at 21:55if (m<=2.0){ y--; m += 12.0; } double a=floor(y/100.0); _jd = (365.25*(y+4716.0))+(30.6001*(m+1))+d+(2.0-a+floor(a/4.0))-1524.5; }floor()is a rounding function... – Quesurfin Nov 06 '12 at 15:36