Skip to main content

This article includes a COBOL program that will convert a UNIX date to an epoch date and then back to human-readable.

Problem:

How can a calendar date be converted to an epoch date and then back to human readable?

Resolution:

The attached COBOL program is an example of how to convert a UNIX calendar date to an epoch date and how to convert an Epoch date to a calendar date, using the operating system’s date command.


epoch.cbl

Epoch,
UNIX
Time, Posix Tim, Unix Timestamp



Date:

Name:

Description of change:
Date:

Name:

Description of change:

Attachments

Old KB# 14335