13 releases

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

#762 in Parser implementations

Download history 365/week @ 2024-02-25 230/week @ 2024-03-03 215/week @ 2024-03-10 29/week @ 2024-03-17 70/week @ 2024-03-24 238/week @ 2024-03-31 299/week @ 2024-04-07 461/week @ 2024-04-14 171/week @ 2024-04-21 16/week @ 2024-04-28

976 downloads per month
Used in 4 crates (3 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–17MB
~248K SLoC