13 releases

new 0.1.12 Apr 20, 2024
0.1.11 Apr 19, 2024
0.1.9 Mar 9, 2024

#733 in Parser implementations

Download history 227/week @ 2024-02-24 267/week @ 2024-03-02 301/week @ 2024-03-09 41/week @ 2024-03-16 73/week @ 2024-03-23 209/week @ 2024-03-30 118/week @ 2024-04-06

506 downloads per month
Used in 4 crates (2 directly)

MIT license

29KB
745 lines

Timestamp/monotonic objects

Features

  • serde Serialization/deserialization with serde

  • chrono conversion between chrono types, also required to parse/deserialize strings from human-readable times

  • sqlx encoding/decoding for sqlx

  • as-float-secs a legacy feature: the default Timestamp de/serialization and string parsing is to/from float seconds (including integers)

sqlx encoding/decoding

Timestamp

  • Sqlite: INTEGER (nanoseconds)

  • PostgreSQL: TIMESTAMPTZ/TIMESTAMP

Monotonic

  • Sqlite: INTEGER (nanoseconds)

  • PostgreSQL: BIGINT (nanoseconds)

Dependencies

~2–18MB
~249K SLoC