in reply to Re^2: Standard way to convert timezone in multithreaded script
in thread Standard way to convert timezone in multithreaded script

You've already shown that POSIX isn't thread safe in that respect. I don't know what you're expecting from us if you're dismissing the alternatives.
  • Comment on Re^3: Standard way to convert timezone in multithreaded script

Replies are listed 'Best First'.
Re^4: Standard way to convert timezone in multithreaded script
by whale2 (Novice) on Nov 23, 2009 at 21:47 UTC
    Calling
    setenv("TZ","Blah-Blah",1); tzset();
    from .xs does the trick. But doing
    $ENV{TZ}='blah-blah' POSIX::tzset()
    does not.