{
  "comment" : "This is generated by ESQL's AbstractFunctionTestCase. Do not edit it. See ../README.md for how to regenerate it.",
  "type" : "scalar",
  "name" : "to_timeduration",
  "description" : "Converts an input value into a `time_duration` value.",
  "signatures" : [
    {
      "params" : [
        {
          "name" : "field",
          "type" : "keyword",
          "optional" : false,
          "description" : "Input value. The input is a valid constant time duration expression."
        }
      ],
      "variadic" : false,
      "returnType" : "time_duration"
    },
    {
      "params" : [
        {
          "name" : "field",
          "type" : "text",
          "optional" : false,
          "description" : "Input value. The input is a valid constant time duration expression."
        }
      ],
      "variadic" : false,
      "returnType" : "time_duration"
    },
    {
      "params" : [
        {
          "name" : "field",
          "type" : "time_duration",
          "optional" : false,
          "description" : "Input value. The input is a valid constant time duration expression."
        }
      ],
      "variadic" : false,
      "returnType" : "time_duration"
    }
  ],
  "examples" : [
    "ROW x = \"2024-01-01\"::datetime\n| EVAL y = x + \"3 hours\"::time_duration, z = x - TO_TIMEDURATION(\"3 hours\");"
  ],
  "preview" : false,
  "snapshot_only" : false
}
