to_timeduration.md 381 B

% This is generated by ESQL's AbstractFunctionTestCase. Do no edit it. See ../README.md for how to regenerate it.

Example

row x = "2024-01-01"::datetime | eval y = x + "3 hours"::time_duration, z = x - to_timeduration("3 hours");
x:datetime y:datetime z:datetime
2024-01-01 2024-01-01T03:00:00.000Z 2023-12-31T21:00:00.000Z