libc-strftime
A wrapper library for the glibc strftime function.
Why?
There is currently no way in Rust to get translated date and time.
Examples
Format the current date and time in Brussels in French:
use env;
set_var;
set_var;
tzset;
set_locale;
let now = epoch; // most likely a u64
let local = strftime_local;
println!; // On est: mer 07 aoĆ» 2019 06:19:56 CEST
Known Issues
- The translation doesn't seem to work with MUSL.