DateBinaryLoader as DateBinaryLoader,
TimeLoader as TimeLoader,
TimeBinaryLoader as TimeBinaryLoader,
- TimeTzLoader as TimeTzLoader,
- TimeTzBinaryLoader as TimeTzBinaryLoader,
+ TimetzLoader as TimetzLoader,
+ TimetzBinaryLoader as TimetzBinaryLoader,
TimestampLoader as TimestampLoader,
TimestampBinaryLoader as TimestampBinaryLoader,
- TimestampTzLoader as TimestampTzLoader,
- TimestampTzBinaryLoader as TimestampTzBinaryLoader,
+ TimestamptzLoader as TimestamptzLoader,
+ TimestamptzBinaryLoader as TimestamptzBinaryLoader,
IntervalLoader as IntervalLoader,
IntervalBinaryLoader as IntervalBinaryLoader,
)
DateBinaryLoader.register("date", ctx)
TimeLoader.register("time", ctx)
TimeBinaryLoader.register("time", ctx)
- TimeTzLoader.register("timetz", ctx)
- TimeTzBinaryLoader.register("timetz", ctx)
+ TimetzLoader.register("timetz", ctx)
+ TimetzBinaryLoader.register("timetz", ctx)
TimestampLoader.register("timestamp", ctx)
TimestampBinaryLoader.register("timestamp", ctx)
- TimestampTzLoader.register("timestamptz", ctx)
- TimestampTzBinaryLoader.register("timestamptz", ctx)
+ TimestamptzLoader.register("timestamptz", ctx)
+ TimestamptzBinaryLoader.register("timestamptz", ctx)
IntervalLoader.register("interval", ctx)
IntervalBinaryLoader.register("interval", ctx)
) from None
-class TimeTzLoader(Loader):
+class TimetzLoader(Loader):
format = Format.TEXT
_py37 = sys.version_info >= (3, 7)
raise DataError(f"can't manage timetz {s!r}: {e}") from None
-class TimeTzBinaryLoader(Loader):
+class TimetzBinaryLoader(Loader):
format = Format.BINARY
if sys.version_info < (3, 7):
setattr(
- TimeTzBinaryLoader, "_tz_from_sec", TimeTzBinaryLoader._tz_from_sec_36
+ TimetzBinaryLoader, "_tz_from_sec", TimetzBinaryLoader._tz_from_sec_36
)
) from None
-class TimestampTzLoader(Loader):
+class TimestamptzLoader(Loader):
format = Format.TEXT
_re_format = re.compile(
)
-class TimestampTzBinaryLoader(Loader):
+class TimestamptzBinaryLoader(Loader):
format = Format.BINARY