LU
lukesneeringer/wall-clock
Representation of time as seen on a wall clock, with no date or time zone.
Wall Clock Time
wall-clock provides a simple and very basic struct for repsenting time as one reads it off a
clock on the wall, e.g. with no concept of date, or time zone.
Examples
Making a wall clock time:
use wall_clock::WallClockTime;
let wct = WallClockTime::new(15, 0, 0);You can also use the time! macro to get a syntax resembling a literal:
use wall_clock::time;
let wct = time!(15:00:00);Features
wall-clock ships with the following features:
diesel-pg: Enables interop with PostgreSQLTIMEcolumns using Diesel.serde: Enables serialization and desearialization withserde. (Enabled by default.)
On this page
Languages
Rust100.0%
Contributors
Created April 2, 2024
Updated April 2, 2024