converting to UTC from PDT or IST (date needs timezone short form)
$ TZ="UTC" date -d "Wed Apr 27 23:00:00 PDT 2011"
Thu Apr 28 06:00:00 UTC 2011
$ TZ="UTC" date -d "Wed Apr 27 23:00:00 IST 2011"
Wed Apr 27 17:30:00 UTC 2011
$ TZ="UTC" date -d "Wed Apr 27 11:00:00 IST 2011"
Wed Apr 27 05:30:00 UTC 2011
$ TZ="UTC" date -d "Wed Apr 27 11:00:00 PST 2011"
Wed Apr 27 19:00:00 UTC 2011
$ TZ="UTC" date -d "Wed Apr 27 11:00:00 PDT 2011"
Wed Apr 27 18:00:00 UTC 2011
Wednesday, April 27, 2011
Tuesday, April 5, 2011
Date for different time zone
Get the right date of other timezone
$ date
Tue Apr 5 12:55:41 IST 2011
$ TZ=UTC date
Tue Apr 5 07:25:47 UTC 2011
$ TZ="America/Los_Angeles" date
Tue Apr 5 00:25:50 PDT 2011
$ TZ="America/New_York" date
Tue Apr 5 03:26:00 EDT 2011
$ TZ="Europe/Paris" date
Tue Apr 5 09:28:28 CEST 2011
$ date
Tue Apr 5 12:58:37 IST 2011
reference:http://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
$ date
Tue Apr 5 12:55:41 IST 2011
$ TZ=UTC date
Tue Apr 5 07:25:47 UTC 2011
$ TZ="America/Los_Angeles" date
Tue Apr 5 00:25:50 PDT 2011
$ TZ="America/New_York" date
Tue Apr 5 03:26:00 EDT 2011
$ TZ="Europe/Paris" date
Tue Apr 5 09:28:28 CEST 2011
$ date
Tue Apr 5 12:58:37 IST 2011
reference:http://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List
Subscribe to:
Posts (Atom)