Function strip_trailing_zeros_and_period

Source
fn strip_trailing_zeros_and_period(time: String) -> String
Expand description

Get rid of trailing zeros if the string contains a ., i.e., being fractional If the resulting string ends with ., remove that as well.