Crates.io | monotonic-time |
lib.rs | monotonic-time |
version | 1.0.2 |
source | src |
created_at | 2022-06-30 17:37:58.381869 |
updated_at | 2022-07-24 08:45:17.676483 |
description | A simple lightweight crate to convert seconds provided to `Coordinated Universal Time` (UTC) or ` Temps Atomique International` (TAI). |
homepage | |
repository | https://github.com/charleschege/Monotonic-Time |
max_upload_size | |
id | 616536 |
size | 29,341 |
A simple lightweight crate to convert seconds provided to Coordinated Universal Time
(UTC) or Temps Atomique International
(TAI).
use monotonic_time::DateTime;
let mut datetime = DateTime::new();
use monotonic_time::DateTime;
let now = 1656603896;
let mut datetime = DateTime::new();
datetime.to_datetime(now);
println!("{}", datetime)
use monotonic_time::DateTime;
let now = 1656603896;
let mut datetime = DateTime::new();
// Pass in the seconds and the offset of UTC from TAI
datetime.to_taitime(now, 37);
println!("{}", datetime)
This crate is Licensed under Apache-2.0
or MIT
CONTRIBUTING
All contributions must adhere to the crate's code and the Rust Code of Conduct - https://www.rust-lang.org/policies/code-of-conduct