On Thu, 13 Sep 2018 23:18:11 +0300, Binyamin Dissen wrote: > ... >It is not reading the clock, it is reading a value in the clock format. In my >code where the clock value will be logged, it is adjusted before being stored. > JM>and does not attempt to account for time zones or leap seconds. When you JM>use BLSUXTOD, you are expected to any adjustments of interest to you JM>before calling BLSUXTOD. >> >:>IOW, BLSUXTOD does the easy part and leaves the hard part for the user. > ... >Adjusting the clock (if you know the difference) is quite easy code. > >:>When the user has a log with timestamps in TOD format and needs the >:>corresponding civil times, those adjustments must be made. It's unreasonable >:>to expect the user rather than the computer to do it. > >Yes, the computer code should do it before storing it. Completely agree. > o Does the TIME TOD macro perform that adjustment or leave it to the user? Why? o Is your practice typical? Do most applications/utilities logging times in TOD format use raw TOD, TOD adjusted by CVTLSO, TOD adjusted by CVTLSO and CVTLDTO, or other (specify)? Critical timestamps should be kept in UTC to avoid the Autumn ambiguity. But users may prefer that these be formatted in Local Time for display. What support does z/OS provide for this? It's routine in most other OSes.
>:>It's time for z/OS to get its head out of the 20th Century. > >Relevance? > IBM seems to regard correct time values as irrelevant. A fun little script I tried on both MacOS and Linux: # Run this in a disposable directory. Use the following # to generate test data: : Leap seconds uncorrected -- time of recent leap second. TZ=GMT0 touch -t201701010000.26 TAIfoo : List with leap seconds correction. TZ=right/GMT0 export TZ # For Linux: ls -l --time-style="+%F %T %z (%Z)" TAIfoo # For MacOS: ls -lT TAIfoo Shows (MacOS; similar on Linux): lsiso 16+ ls -lT TAIfoo -rw-r--r-- 1 paulgilm wheel 0 Dec 31 23:59:60 2016 TAIfoo Imagine! 23:59:60! z/OS shirks by shutting down user tasks during that second. -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN