Commit Graph

6 Commits (cbb52a3db2de5861e0d37c7495d94fbe4c22800e)

Author SHA1 Message Date
nirenjan cbb52a3db2 Improve precision on stardate script
There is a possibility that for every 0.1 stardates (8640 seconds),
the final 0.05 stardate would get rounded up (432 seconds). This kind
of inaccuracy is unacceptable by Starfleet standards, so I've reduced
the inaccuracy to 5e-10 stardates or 43.2 microseconds.
2013-05-03 22:26:43 -07:00
nirenjan 372a2e13e0 Fix stardate script to truncate instead of round 2013-05-01 22:43:36 -07:00
nirenjan c64326cd06 Enhance precision in sdate display 2013-02-19 15:00:03 -08:00
nirenjan 91ca8e118f Speed up stardate counter (1 SD = 1 JD) 2013-01-22 16:58:43 -08:00
nirenjan 1f76e13112 Tweak sdate script to print correct Julian date
The existing script was rounding the computed Julian date which was
resulting in the script printing the next day for 12 hours in the day,
i.e., a date of 456314.5 was being printed as 45631.5 (due to the
division by 10 and rounding up by the print statement). Now, the script
computes the number of days since the epoch (JD 2000000) and drops the
fractional portion, so it will print the correct Julian date stardate,
i.e., a date of 456314.5 will be printed correctly as 45631.4.
2013-01-21 16:51:46 -08:00
nirenjan cb88dd975e Add stardate script based on Julian date 2013-01-21 12:00:38 -08:00