On Wed, 29 Feb 2012 10:11:06 -0600, Bill Godfrey wrote: >On Wed, 29 Feb 2012 09:47:03 -0600, Paul Gilmartin wrote: > >>On Wed, 29 Feb 2012 09:12:20 -0600, Bill Godfrey wrote: >>> >>> http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/BPXZB5A0/E.6.2 >>> >>>The value in the word returned by this routine is in seconds-since-1/1/1970, >>>but, unlike the value returned by the C library time() function and expected >>>by localtime(), it includes leap seconds, so for current dates it is 24 >>>seconds too high. >>> >>No, it's correct; POSIX is the one that's wrong here. (Those >>who suspect me of being invariably biased toward UNIX, >>please note.) >> > >Maybe some day I'll write a little test program that takes the STCK value for >1999 from the Principles of Operation table, run it through the logic, see >what gmtime() returns. I'm pretty confident it will be 22 seconds past >midnight because of the leap seconds. Maybe somebody else will do that before >I do, and prove me right or wrong. > I'm confident that you'll be right. I consider POSIX wrong here. And I'm likewise confident that POSIX will provide the rationale that so often dismays me here: too much legacy code depends on the incorrect behavior ever to change.
>>>The value is also used in the Rexx code at these links: >>> >>> ftp://ftp.boulder.ibm.com/s390/zos/tools/wjsip/wjsigamu.txt >>> >>> ftp://public.dhe.ibm.com/s390/zos/tools/wjsigshl/wjsigshl.txt >> Wikipedia, which is always right, says of an active proposal to abolish leap seconds: http://en.wikipedia.org/wiki/Leap_second#Proposal_to_abolish_leap_seconds o October 2011: The ITU-R released its status paper, Status of Coordinated Universal Time (UTC) study in ITU-R, in preparation for the January 2012 meeting in Geneva; the paper reported that, to date, in response to the UN agency's 2010 & 2011 web based surveys requesting input on the topic, it had received 16 responses from the 192 Member States with "13 being in favor of change, 3 being contrary."[21] o January 2012: The ITU decided to postpone a decision on leap seconds to the World Radio Conference in 2015. France, Italy, Japan, Mexico and the US were reported to be in favor while Canada, China, Germany and the UK were reportedly against.[22] Others including Nigeria, Russia and Turkey called for more study. The BBC states the ITU decided further study of broader social implications was needed.[23] And, repeating: http://www.iana.org/time-zones http://en.wikipedia.org/wiki/Tz_database -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN

