Expand the -r option to support hex. Though undocumented, the -r

option already supported octal. Add a comment to the -r option
in the man page so it's a bit more specific.

Discrepancy brought to my attention by: sasdrq@unx.sas.com
Approved by:	jkh
This commit is contained in:
John W. De Boskey 2000-07-22 22:08:39 +00:00
parent 3765820607
commit b4a3a03827
2 changed files with 3 additions and 2 deletions

View File

@ -122,7 +122,7 @@ is the number of seconds since the Epoch
00:00:00 UTC, January 1, 1970;
see
.Xr time 3
.Pc .
.Pc and can be specified in decimal, octal, or hex.
.It Fl t Ar minutes_west
Set the system's value for minutes west of
.Tn GMT .

View File

@ -116,7 +116,8 @@ main(argc, argv)
break;
case 'r': /* user specified seconds */
rflag = 1;
tval = atol(optarg);
if (sscanf(optarg,"%li",&tval) != 1)
usage();
break;
case 't': /* minutes west of UTC */
/* error check; don't allow "PST" */