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:
“The mind cannot support moral chaos for long. Men are under as strong a compulsion to invent an ethical setting for their behavior as spiders are to weave themselves webs.”
—John Dos Passos (18961970)
“I date the end of the old republic and the birth of the empire to the invention, in the late thirties, of air conditioning. Before air conditioning, Washington was deserted from mid-June to September.... But after air conditioning and the Second World War arrived, more or less at the same time, Congress sits and sits while the presidentsor at least their staffsnever stop making mischief.”
—Gore Vidal (b. 1925)