This function is used to convert a timestamp into ISO8601 format with time zone information into Adelia format.
Context
Windows client
Windows server
Java client
Java server
Adelia Web Client
Adelia Cloud client
Event Adelia client
Parameters
ALPHA | ISOTimestamp | ISO Timestamp |
TIMESTAMP | Timestamp | Adelia Timestamp. Output parameter. |
ALPHA | TimeZoneId | Time zone ID in IANA format if indicated in the ISO timestamp, offset ([+-]HH:MI) or Z for a UTC timestamp. Output parameter. |
NUM_BIN_4 | TimeZoneIdLength | TimeZoneId variable length. |
ALPHA | Offset | Offset ([+-]HH:MI) or Z for a UTC timestamp. Output parameter. |
NUM_BIN_4 | OffsetLength | Offset variable length. |
BOOL | Rc | Function return code. *TRUE if successful, *FALSE if the input date is invalid or if an output result parameter is truncated. Output parameter. |
Example
TIMESTAMP AdeliaTimestamp
ALPHA(128) TimeZoneId
ALPHA(10) Offset
...
/* in return Offset = '+02:00' et TimeZoneId = 'Europe/Paris'
CALL_DLL 'VaToolBx' 'VaToolBxParseISO8601Timestamp' '2024-06-12T12:00:00.000+02:00[Europe/Paris]' AdeliaTimestamp TimeZoneId 128 Offset 10 Rc
List of the VaToolBx functions by topic