TO_TIME
Description
Converts a time string from the context user's local time zone to a Time value in GMT.
Syntax
TO_TIME(string) -> Time
Parameters
| Parameter | Data Type | Required | Description |
|---|---|---|---|
| string | String | Yes | The string to convert into a Time, provided in a recognized time format (e.g., 'HH:mm:ss'). |
Example
TO_TIME("14:30:00")
-- Converts "14:30:00" from local time to a Time in GMT.Tips
Accepted formats include: HH:mm:ss, HH:mm:ss.SSS, HH:mm:ss.SSSZ, HH:mm, and H.