50 logical time_isleapyear
51 data limit/-1,-1,24,60,60,1000,1000/
55 carry=int(date(i)/limit(i))
56 if (date(i).lt.0) carry=int((date(i)+1)/limit(i))-1
57 date(i)=date(i)-carry*limit(i)
58 date(i-1)=date(i-1)+carry
61 if (date(1).gt.0)
then 64 if (date(2).gt.0)
then 65 if (time_isleapyear(date(1)))
then 70 1
if (date(2).le.diy)
goto 2
73 if (time_isleapyear(date(1)))
then 81 3
if (date(2).gt.0)
goto 4
83 if (time_isleapyear(date(1)))
then void time_norm(time_Ts *Pdate)
void time_fullyear(timeint *year)