Article View: comp.os.msdos.programmer
Article #7357Re: Manipulating Dates
From: Roger Simpkins
Date: Wed, 26 Jun 1991 18:21
Date: Wed, 26 Jun 1991 18:21
12 lines
1010 bytes
1010 bytes
goble@cs.washington.edu (Brian Goble) writes: >I need some C code to maniuplate dates. I need to be able to compute >the number of days between 2 dates (or maybe compute the date to a >"serial" date like Excel does--number of days from 1/1/1900). >I also need to be able to determine what day of the week a given day >is (e.g. Tuesday). ALL of the above functions contained in any ANSI C compiler. Try looking at time(), difftime(), asctime() and you may have some sucess.
Technical Details
Message-ID:
<1991Jun26.182132.27503@javelin.sim.es.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!uunet!orca!javelin.sim.es.com!rsimpkinReferences:
<1991Jun25.205213.2693@beaver.cs.washington.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!samsung!uunet!orca!javelin.sim.es.com!rsimpkin From: rsimpkin@javelin.sim.es.com (Roger Simpkins) Newsgroups: comp.os.msdos.programmer,alt.msdos.programmer Subject: Re: Manipulating Dates Keywords: date Message-ID: <1991Jun26.182132.27503@javelin.sim.es.com> Date: 26 Jun 91 18:21:32 GMT References: <1991Jun25.205213.2693@beaver.cs.washington.edu> Organization: Evans & Sutherland Computer Corp., Salt Lake City, Utah Lines: 12