PHP 7.4.33
Preview: __init__.py Size: 599 B
//usr/lib/python3/dist-packages/pyrfc3339/__init__.py
"""
pyRFC3339 parses and generates :RFC:`3339`-compliant timestamps using Python
:class:`datetime.datetime` objects.

>>> from pyrfc3339 import generate, parse
>>> from datetime import datetime
>>> import pytz
>>> generate(datetime.utcnow().replace(tzinfo=pytz.utc)) #doctest:+ELLIPSIS
'...T...Z'
>>> parse('2009-01-01T10:01:02Z')
datetime.datetime(2009, 1, 1, 10, 1, 2, tzinfo=<UTC>)
>>> parse('2009-01-01T14:01:02-04:00')
datetime.datetime(2009, 1, 1, 14, 1, 2, tzinfo=<UTC-04:00>)

"""

from pyrfc3339.generator import generate
from pyrfc3339.parser import parse

__all__ = ['generate', 'parse']

Directory Contents

Dirs: 1 × Files: 4
Name Size Perms Modified Actions
- drwxr-xr-x 2023-04-05 06:35:49
Edit Download
2.12 KB lrw-r--r-- 2018-05-26 16:12:25
Edit Download
3.19 KB lrw-r--r-- 2018-05-26 16:12:25
Edit Download
3.33 KB lrw-r--r-- 2018-06-10 23:56:54
Edit Download
599 B lrw-r--r-- 2018-05-26 16:12:25
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).