Date and Time Functions
AMPS includes functions for working with date and time values. This section covers functions loaded into AMPS by default. AMPS also includes functions for working with date and time in the Legacy Messaging Compatibility layer.
Function | Parameters | Description |
---|---|---|
| format string, timestamp | Produces a string that contains a representation of the provided This function also supports the additional format specifier The length of the string produced for the time is limited to 128 bytes. |
| time string, format string | This function interprets the This function returns a double. The format string uses the same format specifiers as the standard This function also supports the additional format specifier |
| none | Returns the current timestamp as a double, represented in seconds (including parts of a second as a decimal). Notice that a UNIX timestamp is seconds elapsed since 00:00 on January 1, 1970 in UTC and is independent of the timezone of the local system. The underlying system call used for this function has microsecond resolution, subject to any hardware or host limitations. This function is non-deterministic, and cannot be used in contexts that require a deterministic function |
Last updated