Examples using date and time callable services
The examples in this topic illustrate some of the date conversion
and manipulation you can perform by using the Language Environment date
and time services together. There are examples for the following services:
- CEEQCEN
- Queries the century window. See Examples illustrating calls to CEEQCEN and CEESCEN.
- CEESCEN
- Sets the century window. See Examples illustrating calls to CEEQCEN and CEESCEN.
- CEESECS
- Converts timestamp to seconds. See Examples illustrating calls to CEESECS.
- CEESECS and CEEDATM
- Converts timestamp to seconds and builds a new timestamp. See Examples illustrating calls to CEESECS and CEEDATM.
- CEESECS, CEESECI, CEEISEC, and CEEDATM
- Converts timestamp to seconds, convert seconds to date and time components, convert date and time to seconds, and build new timestamp (see Examples illustrating calls to CEESECS, CEESECI, CEEISEC, and CEEDATM)
- CEEDAYS, CEEDYWK, and CEEDATE
- Converts a date to a Lilian date, converts Lilian date to calendar format, and returns day of week for the derived Lilian date. See Examples illustrating calls to CEEDAYS, CEEDATE, and CEEDYWK.
- CEECBLDY
- Converts a date to a COBOL Integer date that is compatible with ANSI COBOL intrinsic functions. See Calls to CEECBLDY in COBOL.