to_j_duration
to_j_duration converts a time duration value to a Java Duration, which is a unit of time in terms of clock time (counting days, hours, minutes, seconds, and nanoseconds).
Important
In query strings, users should choose the built-in function parseDuration instead of to_j_duration. For more information, see:
Syntax
Parameters
| Parameter | Type | Description |
|---|---|---|
| dt | Union[None, Duration, int, str, datetime.timedelta, numpy.timedelta64, pandas.Timedelta] | A date-time value to convert to a Java Duration. Strings can be formatted according to the ISO-8601 standard, which is Strings can also be formatted as |
Returns
Returns a Duration representation of the duration string.