| 1 | output_UTC_Lilian | Output | INT4 |
| 2 | output_UTC_seconds | Output | FLOAT8 |
| 3 | fc | Output | FEEDBACK |
The Get Universal Time Coordinated (CEEUTC) API returns the current Universal Time Coordinated as both a Lilian date and as the number of seconds since 00:00:00 14 October 1582. These values are compatible with the other ILE date and time APIs.
None.
| CEE0000 | The API completed successfully |
| Severity: 00 | |
| CEE2502 | Local time not available |
| Severity: 30 | |
| CEE2531 | UTC not available |
| Severity: 30 | |
| CEE9902 | Unexpected user error occurred in &1 |
| Severity: 30 |
Use CEELOCT to obtain local time.
Use CEEUTCO to obtain the offset from UTC to local time.
The values returned by CEEUTC are handy for wall-clock calculations.
CEEDATE will convert output_UTC_Lilian to character date, and CEEDATM will convert output_UTC_seconds to character timestamp.
See Code disclaimer information for information pertaining to code examples.
Extract current UTC and convert to local date and time in YYMMDDHHMMSS format:
CALL CEEUTC (days, secs, fc);
CALL CEEUTCO (hrs, mins, secoffset, fc);
secs = secs + secoffset;
CALL CEEDATM (secs, 'YYMMDDHHMISS', localdatetime,
fc);
| Top | ILE CEE APIs | APIs by category |