totime() Function

Converts a value to Time.

Syntax

totime( value, … )

value: (Any Type) Value to convert.

Returns

Time

Notes

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.

Examples

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

See Also

time(): Use this function to create a Time value from text.

FEEDBACK