Module taos.timestamp

Expand source code
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

Classes

class TaosTimestamp
Expand source code
class TaosTimestamp:
    pass
class TimestampType

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.
Expand source code
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 variables

var DATETIME
var NUMPY
var RAW
var TAOS