Jim Mulder wrote:
>If you are converting for a different time zone or a historical
>time stamp when the number of leap seconds was different, then it is
>your problem to figure out the adjustment values.

I would replace the word "your" with the words "another entity's." You are
an entity, so that's one option. You could write some fabulous, original
code. However, there are other entities.

1. As one possible example of another entity, you could ask DB2 for z/OS
(Version 10 or higher) historical time-related questions, and you should
get the right answers. I'm referring to DB2's support for temporal data.

2. As another possible example, take a look at Java 8, now available. Order
(via Shopz, for example) or download IBM program numbers 5655-DGG and
5655-DGH, both available at no additional charge to z/OS licensees. Per
JSR-310, Java 8 supposedly understands leap seconds. That's as far as I
understand it at this point, but perhaps Kirk has some more insight.

3. Yet another possible example is NASA's Common Data Format (CDF)
software. CDF apparently understands leap seconds and can convert
accordingly. NASA has not explicitly ported CDF to z/OS UNIX System
Services, but the source code is available for download with a permissive
license:

http://cdaweb.gsfc.nasa.gov

Take a look specifically at the TT2000 data type in CDF. CDF can (and
should) use an external leap second table, though it will fall back on its
internal table if it cannot find the external one.

4. Yet another possible option is Libtai:

http://cr.yp.to/libtai.html

--------------------------------------------------------------------------------------------------------
Timothy Sipples
IT Architect Executive, Industry Solutions, IBM z Systems, AP/GCG/MEA
E-Mail: [email protected]
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to