Shell Commands/Date

From MorphOS Library

< Shell Commands

Date - Displays or sets the date and time of the system

DAY, DATE, TIME, TO=VER/K

DAY  - sets the day to DAY                                                  
DATE - sets the date to DATE
TIME - sets the time to TIME
TO   - sets the date to that of the TO file

Date with no argument displays the currently set system time and date, including the day of the week. Time is displayed using a 24-hour clock.

Date DATE sets only the date. The format for entry and display of DATE is DD-MMM-YY (day-month-year). The hyphens between the arguments are required. A leading zero in the date is not necessary. The number or the first three letters of the month (in English) must be used, as well as the last two digits of the year.