FW: environment independent time functions...

lennox at cs.columbia.edu lennox at cs.columbia.edu
Thu Sep 30 21:16:32 UTC 2010


Christos Zoulas writes:
> What I want to achieve is to be able to use the time functions in a
> multi-threaded program that can handle multiple timezones at the same
> time. Right now, this is impossible, because the notion of timezone is
> expressed through the environment. I was careful to re-use the existing
> code and not change existing functionality so the following routines
> are just an add-on.
> 

I implemented something similar back in 2001, based on the then-current
version of tzcode with some input from its FreeBSD variant.

I've attached my original message describing my implementation.  It's based
on tzcode2001c.  It might be a bit of work to update it to the current
version of tzcode; I've not tried it.

Licensed under the standard tzcode license, i.e. public domain.

For discussion of it, check out the archives of the tz list from June 2001.

-- 
Jonathan Lennox
lennox at cs.columbia.edu

-------------- next part --------------
An embedded message was scrubbed...
From: Jonathan Lennox <lennox at grandcentral.cs.columbia.edu>
Subject: Thread-safe timezones: running code
Date: Mon, 18 Jun 2001 16:57:42 -0400 (EDT)
Size: 104668
Url: http://mm.icann.org/pipermail/tz/attachments/20100930/14ada207/attachment-0001.mht 


More information about the tz mailing list