by pavlov · 9y ago · 0 comments
https://en.wikipedia.org/wiki/Decimal_time
In some countries, a second would be 1/86400 of a day. In others, it would be 1/100000. Awesome potential for insane bugs!
For example to convert from DT to JD you would only need to substract the Epoch in JDs from when the DT was adopted (something like JD-2339410, eg. Current_JD - (JD_epoch - 1792_in_JD) ), to convert from Unix time to JD and you would had to do the same but for Jan 01 1970 and then multiply by 86400 ((JD − 2440587.5) × 86400). Everything would be easier if we used 1/100000 of a day seconds.