On Tue, 28 Feb 2012 09:57:44 -0800, Charles Mills wrote: >Is there any straightforward way to convert an STCK value from some point in >the fairly recent (months, not decades) past to local time for the LPAR's >locale? By "straightforward" I mean without having to maintain my own table >of time changes for the historic period? > Subtract TOD value for Jan. 1, 1970.
Divide by 4,096,000,000. Set time zone with tzset(). Call localtime() then strftime(). This is good back to about 2006 in the U.S.A. Linux does much better. Leap Seconds? You're SOL. -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN

