@@ -43,12 +43,12 @@ class Location:
43
43
Positive is east of the prime meridian.
44
44
Use decimal degrees notation.
45
45
46
- tz : time zone as str, int, float, or datetime.tzinfo (inc. subclasses
47
- from the pytz and zoneinfo packages), default 'UTC'.
46
+ tz : time zone as str, int, float, or datetime.tzinfo (including
47
+ subclassesfrom the pytz and zoneinfo packages), default 'UTC'.
48
48
This value is stored as a valid IANA time zone name string. See
49
49
http://en.wikipedia.org/wiki/List_of_tz_database_time_zones for a
50
50
list of valid name strings, any of which may be passed directly here.
51
- `int`s and `float`s must be whole-number hour offsets from UTC, which
51
+ ints and floats must be whole-number hour offsets from UTC, which
52
52
are converted to the IANA-suppored 'Etc/GMT-N' format. (Note the
53
53
limited range of the offset N and its sign-change convention.)
54
54
@@ -98,6 +98,7 @@ def __repr__(self):
98
98
99
99
@property
100
100
def tz (self ):
101
+ """The location's IANA time-zone string."""
101
102
return str (self ._zoneinfo )
102
103
103
104
@tz .setter
@@ -127,6 +128,7 @@ def tz(self, tz_):
127
128
128
129
@property
129
130
def pytz (self ):
131
+ """The location's pytz time zone."""
130
132
return pytz .timezone (str (self ._zoneinfo ))
131
133
132
134
@classmethod
0 commit comments