Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
In this article
Applies to: ✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft Sentinel
Creates a timespan scalar value from the specified time period.
make_timespan(
hour, minute)
make_timespan(
hour, minute, second)
make_timespan(
day, hour, minute, second)
Learn more about syntax conventions.
Name | Type | Required | Description |
---|---|---|---|
day | int |
✔️ | The day. |
hour | int |
✔️ | The hour. A value from 0-23. |
minute | int |
The minute. A value from 0-59. | |
second | real |
The second. A value from 0 to 59.9999999. |
If the creation is successful, the result will be a timespan value. Otherwise, the result will be null.
print ['timespan'] = make_timespan(1,12,30,55.123)
Output
timespan |
---|
1.12:30:55.1230000 |