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'
]
|