Convert date in unixtime

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!

Try GitHub - chronotope/chrono: Date and time library for Rust

1 Like

Thank you!
I solved it.