Shell Commands/Date

From MorphOS Library

Revision as of 11:03, 3 March 2015 by JPV (talk | contribs) (Created page with "'''Date''' - Displays or sets the date and time of the system DAY, DATE, TIME, TO=VER/K <nowiki> DAY - sets the day to DAY...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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