home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.programmer:4048 comp.unix.questions:9654
- Path: sparky!uunet!mcsun!uknet!root44!datlog!smawer
- From: smawer@datlog.co.uk (Steve Mawer)
- Newsgroups: comp.unix.programmer,comp.unix.questions
- Subject: Re: Need (today's date - 2 WORKING days) [was: Need (today's date + [1-7]]
- Message-ID: <Bs8uw4.Jyv@datlog.co.uk>
- Date: 31 Jul 92 08:14:28 GMT
- References: <1992Jul28.072025.13886@cssc-syd.tansu.com.au> <1992Jul29.031546.26997@bnd2.bnd.oz.au> <Bs7E0r.Gpq@cck.coventry.ac.uk>
- Organization: Data Logic Limited
- Lines: 17
-
- ccx018@cch.coventry.ac.uk (Leslie Griffiths (Griff)) writes:
-
- >In article <1992Jul29.031546.26997@bnd2.bnd.oz.au> johnw@bnd2.bnd.oz.au (John Warburton) writes:
- >>From article <1992Jul28.072025.13886@cssc-syd.tansu.com.au>, by colinl@cssc-syd.tansu.com.au (Colin Lynch):
- >>> bernie@metapro.DIALix.oz.au (Bernd Felsche) writes:
- >>> Having done this, just set a macro for the length (in seconds) of one
- >>> day:
- >>> #define ONE_DAY ((60) * (60) * (24))
- >Call me stupid, but I thought the number of seconds in a day was constant.
- >i.e.
- > #define ONE_DAY 86400
-
- Okay stupid :-) But think how easy Bernd's macro is to maintain should, say,
- the number of minutes in an hour change. *You'd* have to recalculate. :-)
- --
- Steve C. Mawer < smawer@datlog.co.uk> or < {backbone}!ukc!datlog!smawer >
- Voice: +44 81 863 0383 (x2139)
-