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 435/week @ 2024-02-26 186/week @ 2024-03-04 196/week @ 2024-03-11 22/week @ 2024-03-18 90/week @ 2024-03-25 262/week @ 2024-04-01 310/week @ 2024-04-08 490/week @ 2024-04-15 90/week @ 2024-04-22 18/week @ 2024-04-29 41/week @ 2024-05-06

694 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–20MB
~258K SLoC