30 subroutine time_sub(date1, date2, date3)
53 integer date1(7), date2(7), date3(7)
55 integer i, larger(7), smaller(7), case, time_compare
56 logical time_isleapyear
61 if ((date1(1).eq.0).or.(date2(1).eq.0))
then 62 if (date1(1).eq.date2(1))
then 66 if (date1(1).eq.0)
then 79 if (time_compare(date1, date2).gt.0)
then 89 1
if (larger(1).eq.smaller(1))
goto 2
91 larger(2)=larger(2)+365
92 if (time_isleapyear(larger(1))) larger(2)=larger(2)+1
98 date3(i)=larger(i)-smaller(i)
void time_copy(time_Ts Date1, time_Ts *Pdate2)
void time_norm(time_Ts *Pdate)
void time_sub(time_Ts Date1, time_Ts Date2, time_Ts *Pdate3)