#date #epoch #utc #demo #date-processing

epoch_to_human

Convert Date from Epoch to Human readable and vice versa

1 unstable release

0.1.0 Jun 25, 2024

#226 in Value formatting

MIT license

4KB

Library for demonstration

Usage

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"));
}
    

Dependencies

~1MB
~18K SLoC