13 releases
new 0.1.12 | Apr 20, 2024 |
---|---|
0.1.11 | Apr 19, 2024 |
0.1.9 | Mar 9, 2024 |
#733 in Parser implementations
506 downloads per month
Used in 4 crates
(2 directly)
29KB
745 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
~249K SLoC