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

#656 in Parser implementations

Download history 189/week @ 2024-08-19 135/week @ 2024-08-26 30/week @ 2024-09-02 42/week @ 2024-09-09 49/week @ 2024-09-16 130/week @ 2024-09-23 62/week @ 2024-09-30 123/week @ 2024-10-07 77/week @ 2024-10-14 28/week @ 2024-10-21 22/week @ 2024-10-28 71/week @ 2024-11-04 16/week @ 2024-11-11 58/week @ 2024-11-18 48/week @ 2024-11-25 34/week @ 2024-12-02

175 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–17MB
~242K SLoC