ToTimeOfDay

Converts a timestamp or text value into a time.

Variants

ToTimeOfDay(Text text)

Converts the text value in the hh:mm:ss format into a time.

Parameters

text
The text value you want to convert.

Returns

Time

Examples

ToTimeOfDay(Text text, Text culture)

Converts the text value into a time using the specified culture.

Parameters

text
The text value you want to convert.
culture
The culture name.

Returns

Time

Examples

ToTimeOfDay(Timestamp timestamp)

Converts the timestamp into a time by returning the time, in the local time zone, in which the timestamp falls.

Parameters

timestamp
The timestamp value you want to convert.

Returns

Time

Examples

ToTimeOfDay(Timestamp timestamp, Text timezone)

Converts the timestamp into a time by returning the time, in the specified time zone, in which the timestamp falls.

Parameters

timestamp
The timestamp value you want to convert.
timezone
The timezone to convert timestamp argument to, out of the list of valid timezone identifiers.

Returns

Time

Examples