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
175 downloads per month
Used in 16 crates
(7 directly)
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