totime( value )
Converts a value to Time.
See also: time()
Keyword | Type | Description |
---|---|---|
|
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.
To return a localized time for a user, the local()
function must be nested within the totime()
function.
For example, totime(local(pp!starttime))
returns the localized time when a given process started. Otherwise the time is returned in GMT. This is true unless the user happens to reside in the GMT timezone, then no localization is necessary.
totime(datetime(2005,12,13,12,0,0))
returns 12:00 PM
Feature | Compatibility | Note |
---|---|---|
Portals | Compatible | |
Offline Mobile | Compatible | |
Sync-Time Custom Record Fields | Compatible | Can be used to create a custom record field that only evaluates at sync time. |
Real-Time Custom Record Fields | Incompatible | |
Process Reports | Compatible | |
Process Events | Compatible |
totime() Function