This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Convert a (Db2 for i) Timestamp into a character representation of a timestamp in the ISO8601 Format: | |
-- YYYY-MM-DDTHH:MM:SS+/HH:MM | |
Create Or Replace Function YOURSCHEMA.TIMESTAMP_ISO8601 | |
(ParTimestamp Timestamp(6) Default Current_Timestamp, | |
ParTimeZone Decimal(6, 0) Default Current_Timezone) | |
Returns Varchar(26) | |
Language SQL | |
Modifies Sql Data | |
Specific TS_ISO8601 |