is thr any easy way of fetching Timezone of the Solaris server in (+/-)HHMM format using shell scripts.
Say, if the current time zone is GMT, the script should return +0000
If the current timezone is Asia/Calcutta in /etc/TIMEZONE, the scripts has to return +0530
You can reasonably expect a system to support POSIX specifications for the date command. POSIX does not specify a %z. That is a GNU extension. GNU date is a good program, but if he is on a multiuser system, getting GNU date installed may be neither practical nor allowed.