Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculate how many days are between now, and the 31/6/89

Status
Not open for further replies.

PADFOR

Programmer
Feb 5, 2001
25
GB
Can someone please tell how to calculate the number of days between now, and the 31/6/89?
 
thread271-238580 in the awk forum gives a couple of suggestions for subtracting dates, but I'm sure there are many better ways. CaKiwi
 
The AWK methods will probably be the shortest to use.

However, if you check the following site -


Mo Budlong has a series of Korn shell scripts that parse out the parts of the dates and then performs the calculation to find the difference which will be reported in days.

The ones that you will need are entitled -

ymd2yd
juldif
grgdif


If you use these please include Mo's name some where in the scripts, if for no other reason than because he made life a lot for you.



HTH

Steve
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top