| Crates.io | wall-clock |
| lib.rs | wall-clock |
| version | 0.2.2 |
| created_at | 2024-04-02 00:11:18.501064+00 |
| updated_at | 2024-04-03 22:47:22.645095+00 |
| description | A representation of time as displayed on a wall clock, without date or time zone. |
| homepage | |
| repository | https://github.com/lukesneeringer/wall-clock |
| max_upload_size | |
| id | 1193067 |
| size | 12,914 |
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.
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);
wall-clock ships with the following features:
diesel-pg: Enables interop with PostgreSQL TIME columns using Diesel.serde: Enables serialization and desearialization with serde. (Enabled by default.)