Skip to content

time

Casts an expression to a time value.

time(x:any) -> time

The time function casts the given string or number x to a time value.

from {x: time("2020-03-15")}
{x: 2020-03-15T00:00:00.000000}

int, uint, float, string, ip, duration