mirror of
https://github.com/django/django.git
synced 2024-12-27 19:46:22 +00:00
a7dc2c0653
git-svn-id: http://code.djangoproject.com/svn/django/trunk@12164 bcc190cf-cafb-0310-a4f2-bffc1f526a37
31 lines
436 B
Python
31 lines
436 B
Python
"""
|
|
>>> from django.utils.tzinfo import FixedOffset
|
|
|
|
>>> FixedOffset(0)
|
|
+0000
|
|
>>> FixedOffset(60)
|
|
+0100
|
|
>>> FixedOffset(-60)
|
|
-0100
|
|
>>> FixedOffset(280)
|
|
+0440
|
|
>>> FixedOffset(-280)
|
|
-0440
|
|
>>> FixedOffset(-78.4)
|
|
-0118
|
|
>>> FixedOffset(78.4)
|
|
+0118
|
|
>>> FixedOffset(-5.5*60)
|
|
-0530
|
|
>>> FixedOffset(5.5*60)
|
|
+0530
|
|
>>> FixedOffset(-.5*60)
|
|
-0030
|
|
>>> FixedOffset(.5*60)
|
|
+0030
|
|
"""
|
|
|
|
if __name__ == "__main__":
|
|
import doctest
|
|
doctest.testmod()
|