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:

    When I consider the clouds stretched in stupendous masses across the sky, frowning with darkness or glowing with downy light, or gilded with the rays of the setting sun, like the battlements of a city in the heavens, their grandeur appears thrown away on the meanness of my employment; the drapery is altogether too rich for such poor acting. I am hardly worthy to be a suburban dweller outside those walls.
    Henry David Thoreau (1817–1862)

    A preschool child does not emerge from your toddler on a given date or birthday. He becomes a child when he ceases to be a wayward, confusing, unpredictable and often balky person-in-the- making, and becomes a comparatively cooperative, eager-and-easy-to-please real human being—at least 60 per cent of the time.
    Penelope Leach (20th century)