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:
“One of my playmates, who was apprenticed to a printer, and was somewhat of a wag, asked his master one afternoon if he might go a-fishing, and his master consented. He was gone three months. When he came back, he said that he had been to the Grand Banks, and went to setting type again as if only an afternoon had intervened.”
—Henry David Thoreau (18171862)
“There is nothing that I shudder at more than the idea of a separation of the Union. Should such an event ever happen, which I fervently pray God to avert, from that date I view our liberty gone.”
—Andrew Jackson (17671845)