ILE CEE Date and Time APIs
For information on using the ILE CEE date and time APIs, see
ILE CEE Date and Time Notation and Limits.
For other APIs that allow you to work with date and time values,
see Date and Time APIs.
The ILE CEE date and time APIs are:
- Calculate Day of Week from Lilian Date (CEEDYWK) returns the day of the week as a number between 1 and 7.
- Convert Date to Lilian Format (CEEDAYS) converts a string representing a date into a number representing the number of days since 14 October 1582.
- Convert Integers to Seconds (CEEISEC) converts separate binary integers representing year, month, day, hour, minute, second, and millisecond to a number representing the number of seconds since 00:00:00 14 October 1582.
- Convert Lilian Date to Character Format (CEEDATE) formats a number representing a Lilian date.
- Convert Seconds to Character Timestamp (CEEDATM) formats a number representing the number of seconds since 00:00:00 14 October 1582.
- Convert Seconds to Integers (CEESECI) converts a number representing the number of seconds since 00:00:00 14 October 1582 to seven separate binary integers representing year, month, day, hour, minute, second, and millisecond.
- Convert Timestamp to Number of Seconds (CEESECS) converts a string representing a timestamp into a number representing the number of seconds since 00:00:00 14 October 1582.
- Get Current Greenwich Mean Time (CEEGMT) is an alias of CEEUTC.
- Get Current Local Time (CEELOCT) returns the current local time in three formats: Lilian date (the number of days since 14 October 1582), Lilian timestamp (the number of seconds since 00:00:00 14 October 1582), and Gregorian character string (in the form YYYYMMDDHHMISS999').
- Get Offset from Universal Time Coordinated to Local Time (CEEUTCO) provides three values representing the current offset from Universal Time Coordinated (UTC) to local system time.
- Get Universal Time Coordinated (CEEUTC) returns the current Universal Time Coordinated as both a Lilian date and as the number of seconds since 00:00:00 14 October 1582.
- Query Century (CEEQCEN) queries the century within which 2-digit year values are assumed to lie.
- Return Default Date and Time Strings for Country or Region (CEEFMDT) returns the default date and time picture strings for the country or region specified in the country/region_code parameter.
- Return Default Date String for Country or Region (CEEFMDA) returns the default date picture string for the country or region specified in the country/region_code parameter.
- Return Default Time String for Country or Region (CEEFMTM) returns the default time picture string for the country or region specified in the country/region_code parameter.
- Set Century (CEESCEN) sets the century within which 2-digit year values are assumed to lie.