chore(README): added note to the correct part

This commit is contained in:
Erica Marigold 2023-09-13 19:04:10 +05:30 committed by GitHub
parent 5dafc02589
commit 5200922bfd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,12 +18,10 @@ Import the required modules into `lib.rs` or `main.rs`:
use chrono::prelude::*;
use chrono_lc::LocaleDate;
```
You can choose to import just parts of chrono instead of the whole prelude.
Please see ['`chrono`'s documentation](https://docs.rs/chrono/).
> **Note**
> To format a chrono `Date` or `DateTime` object, you can use the `formatl` method:
> You can choose to import just parts of chrono instead of the whole prelude. Please see ['`chrono`'s documentation](https://docs.rs/chrono/).
To format a chrono `Date` or `DateTime` object, you can use the `formatl` method:
```rs
let dt = FixedOffset::east_opt(34200)