Skip to content

alttch/bma-ts

This branch is up to date with main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c509c87 · Jan 14, 2025

History

32 Commits
Apr 20, 2024
Jan 14, 2025
Mar 1, 2024
Jan 14, 2025
Mar 1, 2024
Mar 1, 2024
Jan 14, 2025

Repository files navigation

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)

About

A timestamp object

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages