util.datetime: Add support for sub-second precision timestamps

Lua since 5.3 raises a fuss when time functions are handed a number with
a fractional part and the underlying C functions are all based on
integer seconds without support for more precision.
This commit is contained in:
Kim Alvefur 2022-08-14 16:57:31 +02:00
parent d79609ddc9
commit c85c18b03a
3 changed files with 36 additions and 7 deletions

View file

@ -19,6 +19,10 @@ TRUNK
- Advertise supported SASL Channel-Binding types (XEP-0440)
- Implement RFC 9266 'tls-exporter' channel binding with TLS 1.3
## Changes
- Support sub-second precision timestamps
## Removed
- Lua 5.1 support