{ local $ENV{TZ} = "Singapore"; print scalar localtime; } #### { # Strangely enough I must use GMT-8 on my linux, even # though the official timezone name is GMT+8 (or UTC+8) local $ENV{TZ} = "GMT-8"; print scalar localtime; } #### print scalar gmtime(8*3600+time);