I would like to know if it is possible to get the time zone reduction (example: EST, CST, PST) just using POSIX? I can get the full name of the time zone (example: Pacific Standard Time) using POSIX with the following code:
use POSIX; print strftime("%Z", localtime()), "\n";
I know that there are modules available for date / time manipulation, but since I only need to get an abbreviation from the time zone, I would like to avoid using a large module just for that.
source share