Converts a value to Time.
totime( value, … )
value: (Any Type) Value to convert.
Time
The value parameter accepts Integer, Decimal (double precision floating point), and Datetime, and Array data types.
When operating on arrays, it is not necessary to use apply
with totime
. If multiple parameters are passed, or one parameter is an Array, totime
will return a Time Array.
You can experiment with this function in the test box below.
Test Input
totime(datetime(2005,12,13,12,0,0))
returns 12:00 PM
time(): Use this function to create a Time value from text.