ASKTIME(ADM) XENIX System V ASKTIME(ADM)
Name
asktime - Prompts for the correct time of day.
Syntax
/etc/asktime
Description
This command prompts for the time of day. You must enter a
legal time according to the proper format as defined below:
[[yy]mmdd]hhmm
Here the first mm is the month number; dd is the day number
in the month; hh is the hour number (24-hour system); the
second mm is the minute number; yy is the last 2 digits of
the year number and is optional. The month and day are also
optional, as a group with with the year. The current year
is the default if no year is mentioned.
Examples
This example sets the new time, date, and year to ``11:29
Aug 31, 1992''.
Current system time is Mon Aug 24 14:36:23 PST 1992
Enter time ([yymmdd]hhmm): 9208311129
Diagnostics
If you enter an illegal time, asktime prompts with:
Try again:
Notes
asktime is normally performed automatically by the system
startup file /etc/rc immediately after the system is booted;
however, it may be executed at any time. The command is
privileged, and can only be executed by the super-user.
Systems which autoboot will invoke asktime automatically on
reboot. On these systems, if you don't enter a new time or
press return within 1 minute of invoking asktime, the system
will use the time value it has. If RETURN alone is entered,
the time is unchanged.
Page 1 (printed 2/7/91)