totimespan()
Converts the input to a timespan scalar value.
Deprecated aliases: totime()
Note
When possible, we recommend using timespan literals instead.
Syntax
totimespan(
value)
Learn more about syntax conventions.
Parameters
Name | Type | Required | Description |
---|---|---|---|
value | string |
✔️ | The value to convert to a timespan. |
Returns
If conversion is successful, result will be a timespan value. Else, result will be null.
Example
totimespan("0.00:01:00") == time(1min)
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for