There's a great example
here of
using perl to convert between different timezones (this one is a cgi front-end done in perl). There's a link to the
perl source code off of the "technical info" section.
You may also find the Time::Zone module helpful.