Converting timezone using date command

From Notes_Wiki
Revision as of 10:35, 23 June 2013 by Saurabh (talk | contribs) (Created page with "<yambe:breadcrumb>Desktop_tips_and_tricks|Desktop tips and tricks</yambe:breadcrumb> =Converting timezone using date command= To convert time of other timezone to local time ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<yambe:breadcrumb>Desktop_tips_and_tricks|Desktop tips and tricks</yambe:breadcrumb>

Converting timezone using date command

To convert time of other timezone to local time one can use:

date -d '17:00 PDT' 

Similarly to convert localtime to other timezone we can use:

TZ=PDT date -d '12:00 IST' 

Steps learned from http://www.linuxhowtos.org/Tips%20and%20Tricks/timzone_conversion.htm