utc-datetime 0.1.13

Return timestamp of UTC datetime,Convert time string to UTC datetime
Documentation
1
2
3
4
5
6
7
8
9
10
11
# The main function

```
impl UTCDatetime{
    fn new(year:u16,month:u8,day:u8,hour:u8,minute:u8,second:u8)->Result<UTCDatetime, IllegalTimeError>;
    fn get_timestamp(&self)->Result<u32,IllegalTimeError>;
    fn day_of_the_week(&self)->u8;
    fn from_string(time_str:&str)->Result<UTCDatetime, IllegalTimeError>;
}
```
The UTCDatetime structure derives PartialEq and PartialOrd,
you can directly use <,>, ==, <=,>=,!= for comparison.