Dec 162017
 
Calculates the # of days between two given dates; checks for legal month, date, & leap year entries.
File DAYCN.ZIP from The Programmer’s Corner in
Category Utilities for DOS and Windows Machines
Calculates the # of days between two given dates; checks for legal month, date, & leap year entries.
File Name File Size Zip Size Zip Type
DAYCN.DOC 1176 588 deflated
DAYCN.EXE 5679 5433 deflated

Download File DAYCN.ZIP Here

Contents of the DAYCN.DOC file


DAYCN.EXE
Command

Purpose: Calculates the number of days between two dates.

When DAYCN is called, it prompts for year, month, and date for each of two
dates. Each of the two dates is displayed along with the day of the week.
Program calculates the number of days and the number of years between dates.

Example Run:


DAYCN (c) 1992: Calculates number of days between two dates.

Year #1: 92
Month #1: 9
Date #1: 10
--------------------> 9/10/1992 Thu.
Year #2: 1950
Month #2: 2
Date #2: 20
--------------------> 2/20/1950 Mon.
Days : 15543
Years : 42.555


Number of years is based on 365.2425 days per year.

All dates are based on the Gregorian calendar (beginning 1582).
Dates may be entered in any order (later to earlier or vice-versa).

Any year less than 100 is assumed to be 1900 + year. For example,
if the year "32" is entered, the program will assume it to be 1932.
Entering a blank for year will end the program. Years should be in
the range of 100 a.d. to 1 million a.d.

The program automatically checks for appropriate values for month and
number of days in each month, including February in leap years.



 December 16, 2017  Add comments

Leave a Reply