Skip to main content

parse_time

Function parse_time 

Source
pub fn parse_time(text: &str) -> Option<PgTime>
Expand description

Parse HH:MM:SS[.f] with one to nine fraction digits, rounded to the microsecond, up to 24:00:00.

let t = sql_values::parse_time("03:04:05.125").unwrap();
assert_eq!(t.to_string(), "03:04:05.125");