You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tarantool supports datetime type since version 2.10.0 [1]. This patch
introduced the support of Tarantool datetime type in msgpack decoders
and encoders. The Tarantool datetime type is mapped to the
pandas.Timestamp type. pandas.Timestamp was chosen because it could be
used to store both nanoseconds and timezone information. In-build Python
datetime.datetime supports microseconds at most, numpy.datetime64 do
not support timezones.
If you want to use numpy.datetime64 or datetime.datetime in your logic,
you can use pandas converters in your code:
- pandas.to_datetime(): numpy.datetime64 -> pandas.Timestamp
- pandas.to_datetime(): datetime.datetime -> pandas.Timestamp
- pandas.Timestamp.to_datetime64(): pandas.Timestamp -> numpy.datetime64
- pandas.Timestamp.to_pydatetime(): pandas.Timestamp -> datetime.datetime
This patch does not yet introduce the support of timezones in datetime.
1. tarantool/tarantool#5941
Part of #204
0 commit comments