File: __init__.py

package info (click to toggle)
python-udatetime 0.0.16-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 232 kB
  • sloc: ansic: 768; python: 536; makefile: 6
file content (35 lines) | stat: -rw-r--r-- 893 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# -*- coding: utf-8 -*-
try:
    import __pypy__
except ImportError:
    __pypy__ = None

if __pypy__:
    from udatetime._pure import (
        utcnow,
        now,
        from_rfc3339_string as from_string,
        to_rfc3339_string as to_string,
        utcnow_to_string,
        now_to_string,
        from_timestamp as fromtimestamp,
        from_utctimestamp as utcfromtimestamp,
        TZFixedOffset
    )
else:
    from udatetime.rfc3339 import (
        utcnow,
        now,
        from_rfc3339_string as from_string,
        to_rfc3339_string as to_string,
        utcnow_to_string,
        now_to_string,
        from_timestamp as fromtimestamp,
        from_utctimestamp as utcfromtimestamp,
        TZFixedOffset
    )

__all__ = [
    'utcnow', 'now', 'from_string', 'to_string', 'utcnow_to_string',
    'now_to_string', 'fromtimestamp', 'utcfromtimestamp', 'TZFixedOffset'
]