Code is right here .... https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.3.0/com.ibm.zos.v2r3.bpxbd00/localt.htm
/* CELEBL07 This example queries the system clock and displays the local time. */ #include <time.h> #include <stdio.h> int main(void) { struct tm *newtime; time_t ltime; time(<ime); newtime = localtime(<ime); printf("The date and time is %s", asctime(newtime)); } On Thu, Aug 15, 2019 at 12:49 PM Phil Smith III <li...@akphs.com> wrote: > Jon Perryman wrote: > > >The op wants the machine local time as seen in the system log instead of > > >all the exceptions that are allowed in the C standard. If the op doesn't > > >get an acceptable solution, then call the assembler macro's directly > > >from C.. It's a simple call to time or whatever macro you need. > > > > Yep, that's where I wound up. Sort of amazing that 50 years after OS/360, > there's no standard way to get the current time as hh:mm:ss. How many > thousands of us have had to write that same code. > > > > Thanks to all who helped! > > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN