mirror of
https://github.com/0x5eal/chrono-lc.git
synced 2024-12-13 13:30:39 +00:00
chore(README): added note to the correct part
This commit is contained in:
parent
5dafc02589
commit
5200922bfd
1 changed files with 3 additions and 5 deletions
|
@ -18,12 +18,10 @@ Import the required modules into `lib.rs` or `main.rs`:
|
||||||
use chrono::prelude::*;
|
use chrono::prelude::*;
|
||||||
use chrono_lc::LocaleDate;
|
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**
|
> **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
|
```rs
|
||||||
let dt = FixedOffset::east_opt(34200)
|
let dt = FixedOffset::east_opt(34200)
|
||||||
|
|
Loading…
Reference in a new issue