Hi all,

Recently I came across a scenario where I need to convert the time from one
timezone to another.

Though that time, I used few websites for the same but I want to know how to
do the same in Perl.

The text below will give the kind of input & output my program requires.

Basically I want the end user to specify the from and to timezones along
with the from time. The output should be to time.

Note :- I don't want to use databases for the same.

>From :- http://www.timezoneconverter.com

10/1/2008 6:00:00 PM    (-10 hours, 30 minutes)

*06:00:00 p.m. Wednesday October 1, 2008* in
*US/Central<http://www.timezoneconverter.com/cgi-bin/zoneinfo.tzc?s=default&tz=US/Central>
* converts to
*04:30:00 a.m. Thursday October 2, 2008* in
*Asia/Calcutta<http://www.timezoneconverter.com/cgi-bin/zoneinfo.tzc?s=default&tz=Asia/Calcutta>
*

10/1/2008 8:00:00 PM            Central ==IST??
*08:00:00 p.m. Wednesday October 1, 2008* in
*US/Central<http://www.timezoneconverter.com/cgi-bin/zoneinfo.tzc?s=default&tz=US/Central>
* converts to
*06:30:00 a.m. Thursday October 2, 2008* in
*Asia/Calcutta<http://www.timezoneconverter.com/cgi-bin/zoneinfo.tzc?s=default&tz=Asia/Calcutta>
*





10/1/2008 8:00:00 AM   (-10 hours, 30 minutes)

*08:00:00 a.m. Wednesday October 1, 2008* in
*US/Central<http://www.timezoneconverter.com/cgi-bin/zoneinfo.tzc?s=default&tz=US/Central>
* converts to
*06:30:00 p.m. Wednesday October 1, 2008* in
*Asia/Calcutta<http://www.timezoneconverter.com/cgi-bin/zoneinfo.tzc?s=default&tz=Asia/Calcutta>
*

10/1/2008 10:00:00 AM          Central ==IST??
*10:00:00 a.m. Wednesday October 1, 2008* in
*US/Central<http://www.timezoneconverter.com/cgi-bin/zoneinfo.tzc?s=default&tz=US/Central>
* converts to
*08:30:00 p.m. Wednesday October 1, 2008* in
*Asia/Calcutta<http://www.timezoneconverter.com/cgi-bin/zoneinfo.tzc?s=default&tz=Asia/Calcutta>
*





>From :- http://www.timeanddate.com/

9/25/2008 6:00:00 PM    (-12 hours, 30 minutes)

Thursday, September 25, 2008 at
01:00:00<http://www.timeanddate.com/worldclock/meetingdetails.html?year=2008&month=9&day=25&hour=1&min=0&sec=0&p1=234&p2=771>Wed
6:00 PM *Thu 6:30 AM

9/25/2008 9:00:00 PM            Pacific ==IST??

Thursday, September 25, 2008 at
04:00:00<http://www.timeanddate.com/worldclock/meetingdetails.html?year=2008&month=9&day=25&hour=4&min=0&sec=0&p1=234&p2=771>Wed
9:00 PM *Thu 9:30 AM



Thanks & Regards,
Amit Saxena

Reply via email to