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

#705 in Parser implementations

Download history 44/week @ 2024-11-15 50/week @ 2024-11-22 46/week @ 2024-11-29 58/week @ 2024-12-06 54/week @ 2024-12-13 60/week @ 2024-12-20 54/week @ 2024-12-27 198/week @ 2025-01-03 235/week @ 2025-01-10 159/week @ 2025-01-17 60/week @ 2025-01-24 63/week @ 2025-01-31 99/week @ 2025-02-07 121/week @ 2025-02-14 124/week @ 2025-02-21 156/week @ 2025-02-28

521 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–17MB
~250K SLoC