work not v0.1.0
This commit is contained in:
18
README.md
18
README.md
@@ -3,5 +3,21 @@
|
||||
SimpleDateFormat.java style like date format
|
||||
|
||||
|
||||
Working in progress ...
|
||||
Usage:
|
||||
|
||||
```rust
|
||||
let f = match fmt("yyyy-MM-dd HH:mm:ss z") {
|
||||
Ok(f) => f, Err(err) => {
|
||||
println!("Parse fmt error: {}", err);
|
||||
return;
|
||||
},
|
||||
};
|
||||
println!("Formated date: {}", f.format(&Local::now()));
|
||||
```
|
||||
|
||||
Output:
|
||||
```
|
||||
Formated date: 2020-05-30 13:32:04 +08:00
|
||||
```
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user