Skip to main content

parse_date

Function parse_date 

Source
pub fn parse_date(s: &str, fmt: &str) -> i64
Expand description

Parse a date string according to a format specification.

Supported format tokens: %Y (4-digit year), %m (month), %d (day), %H (hour), %M (minute), %S (second).

Returns epoch milliseconds on success, 0 on parse failure.