Date (Unix) - Setting The Date

Setting The Date

The XSI extension to the SUS specifies that the date command can also be used to set the date. The new date is specified as an option to date in the format MMddhhmmyy], where MM specifies the two-digit numeric month, dd specifies the two-digit numeric day, hh specifies the two-digit numeric hour, mm specifies the two-digit numeric minutes. Optionally cc specifies the first two digits of the year, and yy specifies the last two digits of the year.

The date command from GNU Coreutils (often used on Linux) allows another method with a different format, for example to set the date and time to September 8, 2004 01:22:

date --set="20040908 01:22"

Read more about this topic:  Date (Unix)

Famous quotes containing the words setting and/or date:

    Many working mothers feel guilty about not being at home. And when they are there, they wish it could be perfect.... This pressure to make every minute happy puts working parents in a bind when it comes to setting limits and modifying behavior.
    Cathy Rindner Tempelsman (20th century)

    In the South, the war is what A.D. is elsewhere: they date from it.
    Mark Twain [Samuel Langhorne Clemens] (1835–1910)