Apr
11
2012

how to set a new date time in linux Centos Ubuntu Freebsd

Just type to change local time

# date +%Y%m%d%T -s “20120412 02:35:00”
2012041202:35:00

#date
Thu Apr 12 02:35:03 CLT 2012

 

To set UTC time  as GMT-0 without taking care the zone time

# date -u +%Y%m%d%T -s “20120412 02:35:00”
2012041202:35:00
# date;date -u
Wed Apr 11 22:35:03 CLT 2012

#Utc time

Thu Apr 12 02:35:03 UTC 2012

Written by doutdex in: Uncategorized |

No Comments »

RSS feed for comments on this post. TrackBack URL


Leave a Reply

%d bloggers like this: