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

#655 in Parser implementations

Download history 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 158/week @ 2024-10-11 41/week @ 2024-10-18 20/week @ 2024-10-25 53/week @ 2024-11-01 33/week @ 2024-11-08 44/week @ 2024-11-15 50/week @ 2024-11-22 38/week @ 2024-11-29

170 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
~239K SLoC