Path: utzoo!attcan!uunet!husc6!bbn!uwmcsd1!ig!agate!ucbvax!decwrl!decvax!gsg!lew From: lew@gsg.UUCP (Paul Lew) Newsgroups: comp.sources.wanted Subject: Re: Wanted: General Date Arithmatic Message-ID: <236@gsg.UUCP> Date: 8 Sep 88 05:06:59 GMT Reply-To: lew@gsg.UUCP (Paul Lew) Organization: General Systems Group, Salem, NH Lines: 17 In article <6006@ihlpf.ATT.COM> spock@ihlpf.UUCP (55235-Weiss,E.J.) writes: >I would like to get my hands on (can you get hands on software?) >some functions that can to arithmatic on dates. Things like: >today + 2 weeks. Anybody have anything like that? I once wrote a program called 'dnt' for BSD system so I could insert today's date into vi buffer with the style I like. It accepts a date format sort of like the date for system V. There are options to add/subtract number from the date so you can get date for tomorrow. It only does arithmetic on day, not hour, minute. It is short: 273 lines (no comment) 360 lines (with comment) dnt.c It might not be general enough for you. -- Paul Lew {oliveb,harvard,decvax}!gsg!lew (UUCP) General Systems Group, 5 Manor Parkway, Salem, NH 03079 (603) 893-1000