gpstime 0.8.1__tar.gz → 0.8.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gpstime
3
- Version: 0.8.1
3
+ Version: 0.8.2
4
4
  Summary: GPS-aware datetime module
5
5
  Home-page: https://git.ligo.org/cds/gpstime
6
6
  Author: Jameson Graef Rollins
@@ -151,8 +151,7 @@ class gpstime(datetime):
151
151
  @classmethod
152
152
  def fromgps(cls, gps):
153
153
  """Return gpstime object corresponding to GPS time."""
154
- gt = cls.utcfromtimestamp(gps2unix(gps))
155
- return gt.replace(tzinfo=tzutc())
154
+ return cls.fromtimestamp(gps2unix(gps), tz=tzutc())
156
155
 
157
156
  @classmethod
158
157
  def parse(cls, string='now'):
@@ -12,5 +12,5 @@ __version__: str
12
12
  __version_tuple__: VERSION_TUPLE
13
13
  version_tuple: VERSION_TUPLE
14
14
 
15
- __version__ = version = '0.8.1'
16
- __version_tuple__ = version_tuple = (0, 8, 1)
15
+ __version__ = version = '0.8.2'
16
+ __version_tuple__ = version_tuple = (0, 8, 2)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: gpstime
3
- Version: 0.8.1
3
+ Version: 0.8.2
4
4
  Summary: GPS-aware datetime module
5
5
  Home-page: https://git.ligo.org/cds/gpstime
6
6
  Author: Jameson Graef Rollins
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes