How to get a different timezone time using bash command line


#1

Hi all

I’m working on a script to monitor server availability in different timezone. What i need is to display and different timezone using date command without changing my local time.


#2

Dear forumic,

Please use following bash export command with ()

(export TZ=‘Asia/Almaty’; date)

Thu Dec 19 17:20:55 ALMT 2013

Let me Know if it helps.
Thanks

bnhashmi


#3