in reply to CUT time to EST
This is UNIX specific and you might replace EST with Canada/Eastern or some other name so EST or EDT will be used as required.{ local $ENV{TZ} = 'EST'; print scalar localtime(), "\n"; }
print scalar localtime(time - 4 * 60 * 60), "\n";
|
|---|