15 releases

0.1.14 Aug 18, 2024
0.1.13 Jul 1, 2024
0.1.12 Apr 20, 2024
0.1.9 Mar 9, 2024

#652 in Parser implementations

Download history 251/week @ 2024-06-28 161/week @ 2024-07-05 94/week @ 2024-07-12 159/week @ 2024-07-19 139/week @ 2024-07-26 35/week @ 2024-08-02 102/week @ 2024-08-09 299/week @ 2024-08-16 127/week @ 2024-08-23 72/week @ 2024-08-30 46/week @ 2024-09-06 44/week @ 2024-09-13 105/week @ 2024-09-20 79/week @ 2024-09-27 48/week @ 2024-10-04 150/week @ 2024-10-11

397 downloads per month
Used in 16 crates (7 directly)

MIT license

29KB
743 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–16MB
~236K SLoC