Convert date in unixtime


#1

Hi,
I’m trying to convert these integers into the unixtime format to run a function at a specified time.

let year = 2016;
let month = 1;
let day = 1;
let h = 00;
let m = 00;
let s = 00;

Does anyone know how I could pull this off? Or is there a library which I can use to convert the date?

Thanks in advance
Greetings Adrian!


#2

Try https://github.com/lifthrasiir/rust-chrono


#3

Thank you!
I solved it.

Adrian