On Thursday, September 4, 2003, at 09:37 PM, Dave Rolsky wrote:
I'm pretty sure you have to do that. For example, if you simply set
$ENV{TZ} then localtime() doesn't change in this script:
perl -le 'print scalar localtime; $ENV{TZ} = Asia/Tokyo; print
scalar localtime'
But in this one it
On Friday, September 5, 2003, at 12:50 AM, Joshua Hoblitt wrote:
So there is a difference, on some platform(s), between inheriting the
value of TZ from the environment and setting it at runtime. Using
tzset() is the 'portable' thing to do.
Okay, thanks.
Didn't I answer an almost identical
On Fri, 5 Sep 2003, David Wheeler wrote:
Can you do another test for me (since I don't have a platform that
needs tzset)? Can you tell me how it affects use of local? Here's a
test script:
#!/usr/bin/perl -w
use strict;
use POSIX qw(tzset);
print scalar localtime, $/;
{
local
On Fri, 5 Sep 2003, David Wheeler wrote:
Bah. Thanks for that. Does this work?
#!/usr/bin/perl -w
use strict;
use POSIX qw(tzset);
print scalar localtime, $/;
{
local $ENV{TZ} = Asia/Tokyo;
tzset;
print scalar localtime, $/;
}
tzset;
print scalar localtime, $/;
yup
Hi,
Thanks to Eugene for fixing up a new release of
DateTime::Calendar::Pataphysical - that works (for me, anyway).
I'm having consistent problems with DateTime::Format::DateManip v0.01,
on both Solaris 8 and MacOS X 10.2.6 with Perl 5.8.1.
Extracting DateTime-Format-DateManip-0.01/README
On Thu, 4 Sep 2003, Jonathan Leffler wrote:
I don't know if it is significant that I'm running in US/Pacific time
zone, which is 3 hours adrift from US/Eastern - it doesn't seem to be
that simple as running with TZ=US/Eastern does not alter the answers.
It's probably that simple. Simply
On Thu, 4 Sep 2003, Dave Rolsky wrote:
On Thu, 4 Sep 2003, Jonathan Leffler wrote:
I don't know if it is significant that I'm running in US/Pacific time
zone, which is 3 hours adrift from US/Eastern - it doesn't seem to be
that simple as running with TZ=US/Eastern does not alter the
On Thursday, September 4, 2003, at 12:53 PM, Dave Rolsky wrote:
It's probably that simple. Simply setting the TZ env var probably
won't
do much. An app has to call POSIX::tzset() for that take effect.
I find that for most date and time handling I do, just setting $ENV{TZ}
does the trick --