kulls has asked for the wisdom of the Perl Monks concerning the following question:

Hi
I have writting a perl script which is using  Finance::Quote module .
It returns the time as  15:20 whereas current time in my region will be  13.00

Can anyone suggest me, How should I adjust this time ?
- Raja

Replies are listed 'Best First'.
Re: Finance::Quote time setting
by cdarke (Prior) on Jul 13, 2009 at 07:47 UTC
    I'm guessing your timezone is set to Indian time, and you want BST? Check the timezone setting on your system, which varies depending on the operating system. For example, on POSIX systems you need to alter the environment variable TZ.
      Hi,
      Thanks for your reply.I'm not sure about changing the environment variable will change the  Finance::Quote default timezone .
      There might be some method like  setCurrency which will take care of the timezone settings
      Please suggest me on this
      Update :
      Yahoo fetches all the asia symbols from his singapore domain. So it returns the value in  GST format. I have used  DateTime module to get the  Asia/Calcutta timezone information.
      Thanks,
      - Raja