Power Query
published
Search
⌃K

Duration.From

Duration.From

Creates a duration from the given value.
function (optional value as nullable any) as nullable any

Description

Returns a duration value from the given value. If the given value is null, Duration.From returns null. If the given value is duration, value is returned. Values of the following types can be converted to a duration value:
If value is of any other type, an error is returned.

Category

Duration

Examples

Convert 2.525 into a duration value.
Duration.From(2.525)

duration(2, 12, 36, 0)