chrono-lc
This crate allows to format chrono dates with localized months and week days. Backwards comptible fork of Alex-PK/chrono-locale, now works with the latest version of chrono.
Usage
Include the dependency in Cargo.toml:
[]
= "0.4"
= "0.1.7"
Import the required modules into lib.rs or main.rs:
use *;
use LocaleDate;
Note You can choose to import just parts of chrono instead of the whole prelude. Please see
chrono's documentation.
To format a chrono Date or DateTime object, you can use the formatl method:
let dt = east_opt
.unwrap
.with_ymd_and_hms
.unwrap
.with_nanosecond
.unwrap;
println!;
Warning All of chrono's formatting placeholders work except for
%3f,%6fand%9f(but%.3f,%.6fand%.9fwork normally).