Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.3 alpha 4/3/85; site ukecc.UUCP Path: utzoo!watmath!clyde!cbosgd!ukma!ukecc!edward From: edward@ukecc.UUCP (Edward C. Bennett) Newsgroups: net.unix Subject: Re: crontab: Sunday=7, not 0. Message-ID: <307@ukecc.UUCP> Date: Tue, 29-Oct-85 15:25:53 EST Article-I.D.: ukecc.307 Posted: Tue Oct 29 15:25:53 1985 Date-Received: Wed, 30-Oct-85 07:51:56 EST References: <704@adobe.UUCP> <187@l5.uucp> <491@ttidcb.UUCP> <2935@sun.uucp> Organization: Univ. of Ky. Engineering Computing Center Lines: 32 Summary: 2.9BSD In article <2935@sun.uucp>, guy@sun.uucp (Guy Harris) writes: > > >> By the way, the man page for cron(8) lies. It says that the > > >> days are numbered 1-7 with 1=Monday. The days are actually > > >> numbered 0-6 with 0=Sunday. > > > > > >I tried it on my Sun and he is incorrect. On a Sunday, I added two > > >entries, one for day 7 and one for day 0, at the same time (a few minutes > > >hence). The one with day 7 ran, with day 0 didn't. QED. > > > > Sunday is 0 on my system (still 4.1 BSD, sigh). > > I believe the V7 man page lied; it said the days went 1-7 with 1=Monday, > when the actually went 0-6 with 0-Sunday. The USG/USDL (people who brought > you S3/S5) fixed the man page. The CSRG at UCB (people who brought you > 4.xBSD) fixed the *code* in 4.2. They should have known better - if UNIX > code and UNIX documentation disagree, 99 times out of 100 (if not more > often), the documentation is wrong. Thus, 4.2BSD's "cron" is out of sync > with every other "cron" out there. > Guy Harris On our 2.9BSD system, cron treats the days the same way localtime(3) does, 0-6, 0=Sunday. Our manual page did indeed say 1-7, 1=Monday. A quick edit of cron.8 fixed everything. -- Edward C. Bennett UUCP: ihnp4!cbosgd!ukma!ukecc!edward /* A charter member of the Scooter bunch */ "Goodnight M.A."