Go Down

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


> how can you safely compare dates with float ( or double ) numbers ?
Please check this calculator...

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

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


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


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...

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!

via Egeo 16
Torino, 10131