pub fn parse_date<'a>(ts: i32) -> String {
    let timestring = format!("{:?}", ts);
    let dt: DateTime<Local> = Local.datetime_from_str(&timestring, "%s").unwrap();
    dt.format("%Y-%m-%d").to_string()
}
// parse_date takes a timestamp number and returns a date-formatted string.
parse_date takes a timestamp number and returns a date-formatted string.
parse_date takes a timestamp number and returns a date - formatted string .
pub fn parse_date<'a>(ts: i32) -> String {
    let timestring = format!("{:?}", ts);
    let dt: DateTime<Local> = Local.datetime_from_str(&timestring, "%s").unwrap();
    dt.format("%Y-%m-%d").to_string()
}
pub fn parse_date < ' a > ( ts : i32 ) -> String { let timestring = format ! ( " " ts ) ; let dt : DateTime < Local > = Local . datetime_from_str ( & timestring , " " ) . unwrap ( ) ; dt . format ( " " ) . to_string ( ) }
parse_date takes a timestamp number and returns a date-formatted string.
parse_date takes a timestamp number and returns a date - formatted string .
ts
i32
ts
i32