CircleCI Latest Version License Docs.rs LOC Dependency Status

libc-strftime

A wrapper library for the glibc strftime function

Examples

Format the current date and time in Brussels in French:

``` use std::env;

env::setvar("LCALL", "frBE.UTF-8"); env::setvar("TZ", "Europe/Brussels");

libcstrftime::tzset(); libcstrftime::set_locale();

let now = libcstrftime::epoch(); // most likely a u64 let local = libcstrftime::strftime_local("%c", now); println!("On est: {}", local); ```

Known Issues