datetime: do not mess with nsec in interval
Do not even try to make more readable output of secs/nsec, but rather report them as is, without any [de]normalization. Not the prior way: ``` tarantool> dt.interval.new{min=1, sec=59, nsec=2e9+1} -- - +1 minutes, 61.000000001 seconds ... ``` But instead as: ``` tarantool> dt.interval.new{min=1, sec=59, nsec=2e9+1} -- - +1 minutes, 59 seconds, 2000000001 nanoseconds ... ``` Closes #7045 NO_DOC=internal
Showing
- changelogs/unreleased/gh-7045-interval-nanoseconds.md 17 additions, 0 deletionschangelogs/unreleased/gh-7045-interval-nanoseconds.md
- src/lib/core/datetime.c 12 additions, 62 deletionssrc/lib/core/datetime.c
- test/app-tap/datetime.test.lua 7 additions, 4 deletionstest/app-tap/datetime.test.lua
- test/sql-luatest/interval_test.lua 1 addition, 1 deletiontest/sql-luatest/interval_test.lua
Loading
Please register or sign in to comment