Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Re: Re: Getting Weekly Dates

by mothra (Hermit)
on Mar 09, 2001 at 01:30 UTC ( [id://63104]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Getting Weekly Dates
in thread Getting Weekly Dates

...If only Date::Manip wouldn't whine about not being able to figure out my timezone. :( (on NT4WS)

Replies are listed 'Best First'.
Re: Re: Re: Re: Getting Weekly Dates
by merlyn (Sage) on Mar 09, 2001 at 01:43 UTC
    use Date::Manip; Date_Init("TZ=PST");

    -- Randal L. Schwartz, Perl hacker


    update: later on, in the same manpage (huge) it says...
    Unable to determine TimeZone Perhaps the most common problem occurs when you get the error: Error: Date::Manip unable to determine TimeZone. Date::Manip tries hard to determine the local time- zone, but on some machines, it cannot do this (espe- cially non-unix systems). To fix this, just set the TZ variable, either at the top of the Manip.pm file, or in the DateManip.cnf file. I suggest using the form "EST5EDT" so you don't have to change it every 6 months when going to or from daylight savings time. Windows NT does not seem to set the TimeZone by default. From the Perl-Win32-Users mailing list: > How do I get the TimeZone on my NT? > > $time_zone = $ENV{'TZ'}; > You have to set the variable before, WinNT doesn't set i +t by default. Open the properties of "My Computer" and set a + SYSTEM variable TZ to your timezone. Jenda@Krynicky.cz This might help out some NT users.
      That worked. Thank you kindly for your help, it's just been one of those days. :)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://63104]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (8)
As of 2024-04-19 15:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found