Scalar. Converts a given value to an interval.
to_interval ( value )
value | A string, long, float, or interval representing a number in microseconds. Strings must follow the format for an interval literal. |
Converts a given value to an interval. The function takes a string, a long, or a float as its argument, and the function returns an interval. Note that the function can also take an interval as its argument, but it will return the same interval.
to_interval( '1234' ) returns 1234.