bma-ts

Crates.iobma-ts
lib.rsbma-ts
version0.1.14
sourcesrc
created_at2024-03-01 00:17:53.046999
updated_at2024-08-18 03:14:09.46544
descriptionBohemia Automation time library
homepage
repositoryhttps://github.com/alttch/bma-ts
max_upload_size
id1158303
size30,307
Sergiy S. (divi255)

documentation

README

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)

Commit count: 28

cargo fmt