22 releases

Uses new Rust 2024

0.2.5 Feb 12, 2026
0.2.4 Dec 3, 2025
0.2.2 Oct 30, 2025
0.1.15 Jan 14, 2025
0.1.9 Mar 9, 2024

#614 in Encoding

Download history 181/week @ 2025-11-24 215/week @ 2025-12-01 183/week @ 2025-12-08 185/week @ 2025-12-15 161/week @ 2025-12-22 138/week @ 2025-12-29 129/week @ 2026-01-05 100/week @ 2026-01-12 293/week @ 2026-01-19 262/week @ 2026-01-26 206/week @ 2026-02-02 162/week @ 2026-02-09 197/week @ 2026-02-16 179/week @ 2026-02-23 132/week @ 2026-03-02 113/week @ 2026-03-09

647 downloads per month
Used in 25 crates (10 directly)

MIT license

29KB
750 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–18MB
~198K SLoC