work not v0.1.0

This commit is contained in:
2020-05-30 13:35:25 +08:00
parent 08bc9c8155
commit 33759001ff
3 changed files with 84 additions and 17 deletions

View File

@@ -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
```