@@ -52,7 +52,7 @@ def get_tibia_url(section, subtopic=None, *args, anchor=None, **kwargs):
52
52
53
53
You can also build a dictionary and pass it like:
54
54
55
- >>> params = {'world': "Gladera", }
55
+ >>> params = {'world': "Gladera"}
56
56
>>> get_tibia_url("community", "worlds", **params)
57
57
https://www.tibia.com/community/?subtopic=worlds&world=Gladera
58
58
"""
@@ -115,7 +115,7 @@ def parse_tibia_datetime(datetime_str) -> Optional[datetime.datetime]:
115
115
Returns
116
116
-----------
117
117
:class:`datetime.datetime`, optional
118
- The represented datetime, in UTC.
118
+ The represented datetime, in UTC (timezone aware) .
119
119
"""
120
120
try :
121
121
datetime_str = datetime_str .replace ("," , "" ).replace (" " , " " )
@@ -158,7 +158,7 @@ def parse_tibia_date(date_str) -> Optional[datetime.date]:
158
158
Returns
159
159
-----------
160
160
:class:`datetime.date`, optional
161
- The represented date."""
161
+ The represented date, in UTC (timezone aware) ."""
162
162
try :
163
163
t = datetime .datetime .strptime (date_str .strip (), "%b %d %Y" )
164
164
return t .date ()
@@ -187,7 +187,7 @@ def parse_tibia_forum_datetime(datetime_str, utc_offset=1):
187
187
Returns
188
188
-------
189
189
:class:`datetime`
190
- The datetime represented by the text , in UTC.
190
+ The represented datetime , in UTC (timezone aware) .
191
191
"""
192
192
t = datetime .datetime .strptime (datetime_str .strip (), "%d.%m.%Y %H:%M:%S" )
193
193
# Add/subtract hours to get the real time
@@ -210,7 +210,7 @@ def parse_tibia_full_date(date_str) -> Optional[datetime.date]:
210
210
Returns
211
211
-----------
212
212
:class:`datetime.date`, optional
213
- The represented date.
213
+ The represented date, in UTC (timezone aware) .
214
214
"""
215
215
try :
216
216
t = datetime .datetime .strptime (date_str .strip (), "%B %d, %Y" )
@@ -280,7 +280,7 @@ def try_datetime(obj) -> Optional[datetime.datetime]:
280
280
Returns
281
281
-------
282
282
:class:`datetime.datetime`, optional
283
- The represented datetime, or :obj:`None` if conversion wasn't possible.
283
+ The represented datetime, in UTC (timezone aware), or :obj:`None` if conversion wasn't possible.
284
284
"""
285
285
if obj is None :
286
286
return None
@@ -304,7 +304,7 @@ def try_date(obj) -> Optional[datetime.date]:
304
304
Returns
305
305
-------
306
306
:class:`datetime.date`, optional
307
- The represented date.
307
+ The represented date, in UTC (timezone aware) .
308
308
"""
309
309
if obj is None :
310
310
return None
@@ -386,9 +386,8 @@ def parse_tibia_money(argument):
386
386
387
387
Returns
388
388
-------
389
- int:
389
+ :class:` int` :
390
390
The value represented by the string.
391
-
392
391
"""
393
392
try :
394
393
return int (argument )
0 commit comments