Re: Want code to display date in different timezone



Anil Kumar, Malyala wrote:
> Hi friends,
>
> Can you help me out.
>
> I have a program in which the time zone is GMT and the time is displayed
> as "Thu, 28 Jul 2005 11:21:17 GMT".
>
> I want to display the time in IST. How can I achieve this in PERL.
>
> Regards,
> Anil Kumar Malyala
>

One option using the DateTime module suite is listed here:

http://datetime.perl.org/faq.html#3.2%3A%20If%20I%20know%20my%20local%20time%2C%20how%20do%20I%20determine%20the%20local%20time%20in%20another%20time%20zone%3F

Time zones are nasty things. Good luck,

http://danconia.org
.



Relevant Pages

  • Re: Want code to display date in different timezone
    ... Anil Kumar, Malyala wrote: ... I have a program in which the time zone is GMT and the time is displayed ... Regards, ... Anil Kumar Malyala ...
    (perl.beginners)
  • Re: DST in Windows
    ... So I go back into the Date/Time applet, ... Then I hit the Time Zone tab and change to ... In the meantime use tzedit again and look at the ""Eastern Daylight ... If I manually do the re-application of time zone, and display the ...
    (microsoft.public.windowsxp.general)
  • Re: Daylight Savings Time shift still broken in Entourage 11.3.3/11.3.4; Mac OS 10.4.7
    ... display problem for new events. ... Since you've discovered that yourEntouragewas set to an incorrect time ... incorrect time zone, I would think you'll need to manually adjust each ... I had this same problem before Apple released its Panther DST update ...
    (microsoft.public.mac.office.entourage)
  • Re: Time zone jumping
    ... I live in the same time zone as London, England and so have my display ... the display clock ...
    (alt.os.linux.suse)
  • Re: Time Zone and DateTime voes.
    ... I recommend storing, calculating, and manipulating times in UTC. ... it comes time to display the time to the end user then convert to the ... mistakes made in converting to the local time zone aren't as critical ...
    (microsoft.public.dotnet.general)