16 releases

0.1.15 Jan 14, 2025
0.1.14 Aug 18, 2024
0.1.13 Jul 1, 2024
0.1.12 Apr 20, 2024
0.1.9 Mar 9, 2024

#695 in Parser implementations

Download history 138/week @ 2024-10-08 65/week @ 2024-10-15 24/week @ 2024-10-22 40/week @ 2024-10-29 51/week @ 2024-11-05 18/week @ 2024-11-12 60/week @ 2024-11-19 52/week @ 2024-11-26 30/week @ 2024-12-03 80/week @ 2024-12-10 53/week @ 2024-12-17 62/week @ 2024-12-24 149/week @ 2024-12-31 174/week @ 2025-01-07 239/week @ 2025-01-14 84/week @ 2025-01-21

646 downloads per month
Used in 18 crates (9 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
~244K SLoC