Pages: 1 [2]   Go Down
Author Topic: 9E+99 (VB to C++... arduino...)  (Read 1392 times)
0 Members and 1 Guest are viewing this topic.
Germany
Offline Offline
Faraday Member
**
Karma: 56
Posts: 2983
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 ?

Logged

0
Offline Offline
Full Member
***
Karma: 0
Posts: 205
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 smiley

Best regards
Pedro Ferrer
Logged

0
Offline Offline
Full Member
***
Karma: 0
Posts: 205
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Pages: 1 [2]   Go Up
Jump to: