timestamp.py 481 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17

class TimestampType(object):
    """Choose which type that parsing TDengine timestamp data to

    - DATETIME: use python datetime.datetime, note that it does not support nanosecond precision,
        and python taos will use raw c_int64 as a fallback for nanosecond results.
    - NUMPY: use numpy.datetime64 type.
    - RAW: use raw c_int64.
    - TAOS: use taos' TaosTimestamp.
    """
    DATETIME = 0,
    NUMPY = 1,
    RAW = 2,
    TAOS = 3,

class TaosTimestamp:
    pass