Go Down

Topic: 9E+99 (VB to C++... arduino...) (Read 1 time) previous topic - next topic

michael_x

Quote
> how can you safely compare dates with float ( or double ) numbers ?
Please check this calculator...
http://aa.usno.navy.mil/data/docs/JulianDate.php


So you can't, on an Arduino, even if you stick to full days

Quote
The Julian date for CE  2012 May 23 00:00:00.0 UT is
JD 2456070.500000

This is way beyond the accuracy of a 32 bit float

BTW: Curious about the used formula,why is a Julian Date related to a pacific timezone ?


Pedro Ferrer

Hello

Yes... if you want to retrieve seconds, minutes and hours from there, forget it with arduino (for now... with chipkit is possible, I think)... but days, months and years... are fine :)

Best regards
Pedro Ferrer

Pedro Ferrer

Hello

That's why we don't use that kind of valour... but shorter... eg: Julian date year 2000... is shorter... about 41xxx.xxxx days... until now...

Bye
Pedro Ferrer

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy