Creates a time from the given value.
function (optional
value
as nullable any, optionalculture
as nullable any) as nullable any
Returns a time
value from the given value
. If the given value
is null
, Time.From
returns null
. If the given value
is time
, value
is returned. Values of the following types can be converted to a time
value:
If value
is of any other type, an error is returned.
Time
Convert 0.7575
to a time
value.
Time.From(0.7575)
Convert #datetime(1899, 12, 30, 06, 45, 12)
to a time
value.
Time.From(#datetime(1899, 12, 30, 06, 45, 12))