Custom Search

Wednesday, September 23, 2015

Ubuntu Linux Convert IST time to UTC time

1)
Print Time in IST
$ date
Wed Sep 23 23:54:54 IST 2015

2)
Print/Convert IST time to UTC time
$ date -u
Wed Sep 23 18:24:59 UTC 2015

3)
Change Time
$date --set "Wed Sep 23 18:22:01 UTC 2015"
Wed Sep 23 18:22:01 UTC 2015

4)
To change time zone
$sudo dpkg-reconfigure tzdata

No comments:

Post a Comment