Legacy Messaging Functions
Legacy Messaging Compatibility Functions
The AMPS distribution includes a library of legacy messaging compatibility functions. These functions are intended to ease migration to AMPS from legacy messaging systems that provide similar functions.
In this release, the legacy messaging functions provide functions to make it easy to work with date and time.
These functions are not loaded into AMPS by default. To enable them, you must load the legacy messaging compatibility module by adding a directive to the AMPS configuration file. Once the module is loaded, the functions become available. No further configuration is required.
For example, adding the following configuration item to the Modules
block of the AMPS configuration file loads the legacy messaging compatibility functions.
Function | Parameters | Description |
---|---|---|
| (none) | Returns a |
| timestamp | Returns the year for the provided timestamp. The year is calculated in the UTC timezone. For example, calling |
| timestamp | Returns the month for the provided timestamp. The month is calculated in the UTC timezone. For example, calling |
| timestamp | Returns the day for the provided timestamp. The day is calculated in the UTC timezone. For example, calling |
| timestamp | Returns a timestamp for the beginning of the provided day (00:00:00) in UTC. The timestamp is represented in seconds. |
| timestamp | Returns the UNIX timestamp for the beginning of the provided day (00:00:00) in the local timezone. The timestamp is represented in seconds. |
| (none) | Returns the UNIX timestamp for the beginning of the current day (00:00:00) in UTC -- that is, the local timestamp that corresponds to the UTC time for the start of the current day. The timestamp is represented in seconds. |
| (none) | Returns the UNIX timestamp for the beginning of the current day (00:00:00) in the local timezone. The timestamp is represented in seconds. |
Last updated