[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
leap seconds
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I am writing a python program to log variable observations. I have a function
in the program that computes the current Julian date (or any Julian date
given date/GMT). I tested it against XEphem and I was a little off. I got
better day/year values for earth (23.9344 and 365.2422) and it got very
close, but was always 13 seconds off. Then I checked for the current leap
second status and it happens to be 13. So now the program reports the
correct Julian Date, but my question is:
Do we take the leap seconds into account or not? Apparently my Linux box
running ntp, with Python2.2's time module has no idea that they exist. Can
someone enlighten me?
Thanks,
Mike
- --
Michael Doornbos
President
Imapenguin, LLC
mike@imapenguin.com
www.imapenguin.com
PGP Fingerprint
2F98 37A3 F49F 422F 7D0F C9F0 6E6E 48DD FE05 F97C
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iD8DBQE8/RB4bm5I3f4F+XwRAsyiAKC7f8GPfksa508s2E5Tcp/bXBrqnACgt9p2
1UjcpPIwcTtAWVQa3d81h54=
=T4wC
-----END PGP SIGNATURE-----