Crates.io | epoch_to_human |
lib.rs | epoch_to_human |
version | 0.1.0 |
source | src |
created_at | 2024-06-25 20:31:10.925657 |
updated_at | 2024-06-25 20:31:10.925657 |
description | Convert Date from Epoch to Human readable and vice versa |
homepage | |
repository | https://github.com/gchandra10/rust-epoch-to-human/ |
max_upload_size | |
id | 1283844 |
size | 3,214 |
cargo add epoch_to_human
// main.rs
use epoch_to_human::*;
fn main(){
println!("{:?}",epoch_to_date(1719315296));
println!("{:?}",date_to_epoch("2024-06-25 11:34:56"));
}