Table of contents
TOC
Collapse the table of content
Expand the table of content

Time.From

Owen Duncan|Last Updated: 4/19/2018

About

Returns a time value from a value.

Time.From(value as any, optional culture as nullable text) as nullable time  

Arguments

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.

Remarks

  • If value is null, Time.From returns null.

  • If value is time, the same value is returned.

Examples

Time.From(0.7575) equals #time(18,10,48)  
Time.From(#datetime(1899, 12, 30, 06, 45, 12)) equals #time(06,45,12)  
© 2018 Microsoft