44 integer date1(7), date2(7), n
46 integer quotient(7), rest(7), product(7), carry(7), i, limit(7)
48 data limit/-1,-1,24,60,60,1000,1000/
50 if (date1(1).ne.0)
then 55 quotient(i)=int(n/limit(i))
56 rest(i)=n-limit(i)*quotient(i)
57 help=int(rest(i)*date1(i)/limit(i))
58 carry(i)=quotient(i)*date1(i)+help
59 product(i)=rest(i)*date1(i)-help*limit(i)
63 date2(i)=product(i)+carry(i+1)
subroutine time_util_fatal(caller, text)
void time_norm(time_Ts *Pdate)
void time_mul(time_Ts Date1, time_Ts *Pdate2, integer n)