FunctionsdurationVersion: v4.25On this pagedurationCasts an expression to a duration value.duration(x:string) -> durationDescriptionThe duration function casts the given string x to a duration value.ExamplesCast a string to a durationfrom {str: "1ms"} dur = duration(str){str: "1ms", dur: 1ms}See Alsotime