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  

ArgumentDescription
valueValue to convert.
optional cultureA 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

TypeDescription
textReturns a time value from text value. For more details, see Time.FromText.
datetimeThe time component of a value.
datetimezoneThe time component of the local date and time equivalent of value.
numberA 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 typeAn 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: