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:

    Dandyism is the last flicker of heroism in decadent ages.... Dandyism is a setting sun; like the declining star, it is magnificent, without heat and full of melancholy. But alas! the rising tide of democracy, which spreads everywhere and reduces everything to the same level, is daily carrying away these last champions of human pride, and submerging, in the waters of oblivion, the last traces of these remarkable myrmidons.
    Charles Baudelaire (1821–1867)

    We, when we sow the seeds of doubt deeper than the most up-to- date and modish free-thought has ever dreamed of doing, we well know what we are about. Only out of radical skepsis, out of moral chaos, can the Absolute spring, the anointed Terror of which the time has need.
    Thomas Mann (1875–1955)