notice: Demos local timezone is east 8,other timezone need to change the assert_eq right.
```rust use cvdate::CvDate;
let d = CvDate::new(1582939726); asserteq!(d.getdate(), "2020-02-29"); asserteq!(d.gettime(), "09:28:46"); asserteq!(d.getdatetime(), "2020-02-29 09:28:46"); asserteq!(d.format("%d/%m/%Y %H:%M"), "29/02/2020 09:28"); asserteq!(CvDate::isleap(2020), true); asserteq!(CvDate::isleap(2021), false); ```
```rust use cvdate::CvDate;
let d = CvDate::newwithstr("%Y/%m-%d %H:%M:%S","2020-07-29 15:23:27"); asserteq!(d.gettimestamp(), 1596007407); asserteq!(d.getdate(), "2020-07-29"); asserteq!(d.gettime(), "15:23:27"); asserteq!(d.getdatetime(), "2020-07-29 15:23:27"); asserteq!(d.format("%d/%m/%Y %H:%M"), "29/07/2020 15:23"); asserteq!(CvDate::isleap(2020), true); asserteq!(CvDate::isleap(2021), false); ```
```rust use cvdate::CvDate;
//timezone east 8 str time to other area let x = CvDate::newwithstrtz("%Y-%m-%d %H:%M:%S","2020-02-29 05:23:27", 8); //timezone east +9 asserteq!(CvDate::newwithtz(x.gettimestamp(), 9).getdatetime(), "2020-02-29 06:23:27"); //timezone west -10 asserteq!(CvDate::newwithtz(x.gettimestamp(), -10).getdate_time(), "2020-02-28 11:23:27"); ```