MCPcopy
hub / github.com/myusuf3/delorean / timezone

Method timezone

delorean/dates.py:318–334  ·  view source on GitHub ↗

Returns a valid tzinfo object associated with the Delorean object. .. testsetup:: from datetime import datetime from delorean import Delorean .. doctest:: >>> d = Delorean(datetime(2015, 1, 1), timezone='UTC') >>> d

(self)

Source from the content-addressed store, hash-verified

316
317 @property
318 def timezone(self):
319 """
320 Returns a valid tzinfo object associated with
321 the Delorean object.
322
323 .. testsetup::
324
325 from datetime import datetime
326 from delorean import Delorean
327
328 .. doctest::
329
330 >>> d = Delorean(datetime(2015, 1, 1), timezone='UTC')
331 >>> d.timezone
332 <UTC>
333 """
334 return self._tzinfo
335
336 def truncate(self, s):
337 """

Calls

no outgoing calls