Time.From
This topic applies to the Power Query Formula Language which can be used with Power Query and Power BI Desktop to build queries that mashup data. See the list of function categories.
Returns a time value from a value.
Time.From(value as any, optional culture as nullable text) as nullable time
| Argument | Description |
|---|---|
| value | Value to convert. |
| optional culture | A text value corresponding to the culture values supported on your version of Windows, such as "en-US". If the culture is not specified, the current user culture is used. For a list of culture names, see National Language Support (NLS) API Reference. |
Type to convert
| Type | Description |
|---|---|
| text | Returns a time value from text value. For more details, see Time.FromText. |
| datetime | The time component of a value. |
| datetimezone | The time component of the local date and time equivalent of value. |
| number | A time equivalent to the number of fractional days expressed by value. If value is negative or greater or equal to 1, an error is returned. |
| any other type | An Expression.Error is thrown. |
If value is null, Time.From returns null.
If value is time, the same value is returned.
Time.From(0.7575) equals #time(18,10,48)
Time.From(#datetime(1899, 12, 30, 06, 45, 12)) equals #time(06,45,12)
Show: