summaryrefslogtreecommitdiff
path: root/leapsecond.py
diff options
context:
space:
mode:
authorSanjeev Gupta <ghane0@gmail.com>2013-11-28 23:43:49 +0800
committerEric S. Raymond <esr@thyrsus.com>2013-11-28 17:14:12 -0500
commit0456c0e5a383e3f25b7a6b3a4b73fb0f50116963 (patch)
tree1bd284a741839195ba717900a51bca10ff2d0135 /leapsecond.py
parente4e83b53e549845aef15d268090620440de9d29a (diff)
downloadgpsd-0456c0e5a383e3f25b7a6b3a4b73fb0f50116963.tar.gz
Write a lengthy sidebar on why leap seconds exist
I am not sure where this should be, but I do not think this documentation is of direct use to users. Hence I am adding it to timebase.c , for developers. Signed-off-by: Eric S. Raymond <esr@thyrsus.com>
Diffstat (limited to 'leapsecond.py')
-rwxr-xr-xleapsecond.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/leapsecond.py b/leapsecond.py
index 07162bce..81b0fabf 100755
--- a/leapsecond.py
+++ b/leapsecond.py
@@ -330,6 +330,8 @@ def leapbound(year, month):
"Return a leap-second date in RFC822 form."
# USNO lists JAN and JUL (month following the leap second).
# IERS lists DEC. and JUN. (month preceding the leap second).
+ # Note: It is also possible for leap seconds to occur in end-Mar and end-Sep
+ # although none have occurred yet
if month.upper()[:3] == "JAN":
tv = "%s-12-31T23:59:60" % (int(year)-1)
elif month.upper()[:3] in ("JUN", "JUL"):