summaryrefslogtreecommitdiff
path: root/leapsecond.py
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2016-03-27 18:50:24 -0400
committerEric S. Raymond <esr@thyrsus.com>2016-03-27 18:50:24 -0400
commitc19447cb4e33e4ed6e2d8579621ed4194c9a7493 (patch)
tree72fa09159a8d8cd9462186cb2703b3fc6ff672f7 /leapsecond.py
parentf6f22c6cd3b0f52e338f969bd9b6e46aac1b0d9c (diff)
downloadgpsd-c19447cb4e33e4ed6e2d8579621ed4194c9a7493.tar.gz
Restore language about 2.6 portability, clean up Python imports.
Diffstat (limited to 'leapsecond.py')
-rwxr-xr-xleapsecond.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/leapsecond.py b/leapsecond.py
index d5d3c043..dcf7b963 100755
--- a/leapsecond.py
+++ b/leapsecond.py
@@ -6,13 +6,13 @@ Usage: leapsecond.py [-v] { [-h] | [-f filename] | [-g filename] | [-H filename]
Options:
- -I take a date in ISO8601 format and convert to Unix gmt time
+ -I take a date in ISO8601 format and convert to Unix-UTC time
- -O take a date in Unix gmt time and convert to ISO8601.
+ -O take a date in Unix-UTC time and convert to ISO8601.
- -i take a date in RFC822 format and convert to Unix gmt time
+ -i take a date in RFC822 format and convert to Unix-UTC time
- -o take a date in Unix gmt time and convert to RFC822.
+ -o take a date in Unix-UTC time and convert to RFC822.
-f fetch leap-second offset data and save to local cache file
@@ -44,7 +44,7 @@ BSD terms apply: see the file COPYING in the distribution root for details.
"""
# This code runs under both Python 2 and Python 3. Preserve this property!
-from __future__ import print_function
+from __future__ import print_function, division
import os, urllib, re, random, time, calendar, math, sys, signal