precision.py 224 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
class PrecisionEnum(object):
    """Precision enums"""

    Milliseconds = 0
    Microseconds = 1
    Nanoseconds = 2


class PrecisionError(Exception):
    """Python datetime does not support nanoseconds error"""

    pass