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
647 downloads per month
Used in 25 crates
(10 directly)
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