Difference between revisions of "Date"

From Linuxintro
imported>ThorstenStaerk
imported>ThorstenStaerk
Line 11: Line 11:
 
* set the date; in this example to april-20, 2009
 
* set the date; in this example to april-20, 2009
 
  sudo date -s 20090420
 
  sudo date -s 20090420
 +
 +
= See also =
 +
* [http://man-wiki.net/index.php/1:date dAte's man page]
  
 
[[Category:Command]]
 
[[Category:Command]]

Revision as of 08:23, 19 October 2012

date is a command to show or set the current system date and time.

Examples:

  • show the date
date
Fri Apr 17 13:21:55 EDT 2009
date --rfc-3339=date
2012-03-14
  • set the date; in this example to april-20, 2009
sudo date -s 20090420

See also