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 ...

Get A Practical Guide to Red Hat® Linux® 8 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.