🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.lang.asm
Article #371

Re: HOW 2: Count days between two dates

#371
From: Dr John Stockton
Date: Fri, 14 May 1999 00:00
24 lines
1979 bytes
JRS:  In article <7hh0gu$3qn$1@zonnetje.NL.net> of Fri, 14 May 1999
13:12:30 in news:borland.public.turbopascal, TMF <tmf3@hotmail.com>
wrote:
>How can I count the days between two dates in D-M-YYYY format?
>
>Please post & mail

No.  QHAH.

The code you need is in 
        http://www.merlyn.demon.co.uk/programs/dateprox.pas
and tested by
        http://www.merlyn.demon.co.uk/programs/mjd_date.pas
provided that the dates are Gregorian, Julian, or Civil, and lie within
about 32000BC to 32000AD.
For a wider date range (Gregorian only), longcalc.pas will do it.

You have posted to c.l.p, which was rmgrouped long ago.
 
-- 
 � John Stockton, Surrey, UK.  jrs@merlyn.demon.co.uk   Turnpike v4.00   MIME. �
  Web <URL: http://www.merlyn.demon.co.uk/> - TP/BP/&c. FAQqish topics & links.
  Timo's TurboPascal <A HREF="ftp://garbo.uwasa.fi/pc/link/tsfaqp.zip">FAQ</A>.
  <A HREF="http://www.merlyn.demon.co.uk/clpb-faq.txt">Mini-FAQ</A> of c.l.p.b.
Technical Details
Message-ID: <$yKRRnA2bHP3EwI8@merlyn.demon.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <7hh0gu$3qn$1@zonnetje.NL.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 111659,c8153b5b519ca029
X-Google-Attributes: gid111659,public
X-Google-Thread: f7d8d,c8153b5b519ca029
X-Google-Attributes: gidf7d8d,public
X-Google-Thread: 10cc59,c8153b5b519ca029
X-Google-Attributes: gid10cc59,public
X-Google-Thread: 108ebd,c8153b5b519ca029
X-Google-Attributes: gid108ebd,public
From: Dr John Stockton <jrs@merlyn.demon.co.uk>
Subject: Re: HOW 2: Count days between two dates
Date: 1999/05/14
Message-ID: <$yKRRnA2bHP3EwI8@merlyn.demon.co.uk>
X-Deja-AN: 477985688
Content-Transfer-Encoding: 8bit
X-NNTP-Posting-Host: merlyn.demon.co.uk:158.152.233.145
References: <7hh0gu$3qn$1@zonnetje.NL.net>
Content-Type: text/plain;charset=iso-8859-1
X-Complaints-To: abuse@demon.net
X-Trace: news.demon.co.uk 926723289 nnrp-04:13246 NO-IDENT merlyn.demon.co.uk:158.152.233.145
Organization: Home, Surrey, UK
MIME-Version: 1.0
Newsgroups: alt.lang.asm,borland.public.turbopascal,comp.lang.pascal,comp.lang.pascal.borland