Have you tried using the C run-time date and time APIs?
By Bruce Vining
In the two most recent articles of this column (here and here), we have looked at the CEE date and time APIs and seen how easy it is, when working with Lilian seconds, to perform operations such as adding six hours to a time, comparing two time values, etc. without regard to the number of seconds in a minute, the number of minutes in an hour, and so on. This capability is not unique to the CEE APIs. It also exists with other APIs that are provided standard with your i operating system. Today, we will look at one such alternative set of APIs, the C language run-time functions--functions that you can also use from ILE CL. As a reminder, the task we are working on is to send an alert from one program (CHKLSTSND in the original article) when another program (SNDUPD) has not successfully run in over six hours.