home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / hcshdemo.zip / csh-os2.zip / SAMPLES / DELTADAY.CSH < prev    next >
Text File  |  1993-09-28  |  275b  |  9 lines

  1. #    Calculate the number of days separating two dates.
  2. #    Copyright (c) 1991 by Hamilton Laboratories.  All rights reserved.
  3.  
  4. proc deltaday(month2, day2, year2, month1, day1, year1)
  5.     return `julian $month2 $day2 $year2` - julian(month1, day1, year1)
  6. end
  7.  
  8. deltaday $argv
  9.