#!/usr/bin/perl use 5.014; # convert TZ say "\$ENV{TZ}: $ENV{TZ}"; # var had to be manually added on stock W7 { local $ENV{TZ} = "EST+05"; say "In New York, it is " . localtime(); } { local $ENV{TZ} = "IST-05:30"; # does not return correct time on W7 say "In Mumbai, it is " . localtime(); # but, rather, same as NY localtime }