risingwave_common::types::interval

Function convert_hms

source
fn convert_hms(c: &Vec<String>, t: &mut Vec<TimeStrToken>) -> Option<()>
Expand description

convert hour_min_sec format e.g. c = [“1”, “2”, “3”], c will be convert to: [TimeStrToken::Num(1), TimeStrToken::TimeUnit(DateTimeField::Hour), TimeStrToken::Num(2), TimeStrToken::TimeUnit(DateTimeField::Minute), TimeStrToken::Second("3"), TimeStrToken::TimeUnit(DateTimeField::Second)]