Proposal for new ISO C 9x time API

Markus Kuhn Markus.Kuhn at cl.cam.ac.uk
Sun Sep 20 22:49:24 UTC 1998


Chris Newman wrote on 1998-09-16 18:51 UTC:
> I think it would be useful to have a function which returns the time and
> duration of the next transition given time X and timezone Y (e.g., 2 AM
> Mar 30 -1 hour).

OK, that sounds like a good idea. I have just added a function tz_jump()
to my proposal that I hope does what you want. It allows you to iterate
through both leap seconds and timezone changes, perhaps even calendar
exceptions. Please have a look at section 1.3.4 in

  http://www.cl.cam.ac.uk/~mgk25/c-time/

Markus

-- 
Markus G. Kuhn, Security Group, Computer Lab, Cambridge University, UK
email: mkuhn at acm.org,  home page: <http://www.cl.cam.ac.uk/~mgk25/>




More information about the tz mailing list