O'Reilly logo

A Practical Guide to Red Hat® Linux® 8 by Mark G. Sobell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

date

Displays or sets the time and date

						date [options][+format
						|newdate]
					

The date utility displays the time and date. Superuser can use this utility to change the system clock.

Arguments

When Superuser specifies a newdate, the system changes the system clock to reflect the new date. The newdate argument has the format

							nnddhhmm[[cc]yy][.ss]
						

Where nn is the number of the month (01-12), dd is the day of the month (01-31), hh is the hour based on a 24-hour clock (00-23), and mm is the minutes (00-59). When you change the date, you must specify at least these fields.

The optional cc specifies the first two digits of the year (the value of the century minus 1), and yy specifies the last two digits of the year. You can specify yy or ccyy following ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required