53 integer numbers(5), i, first, last, length, index
54 double precision seconds
62 do while ((first.lt.length).and.
63 & (index(
'.0123456789', string(first:first)).eq.0))
67 do while ((last.lt.length).and.
68 & (index(
'.0123456789', string(last:last)).gt.0))
71 if (index(
'0123456789', string(last:last)).lt.1) last=last-1
72 if ((first.le.length).and.(index(
'0123456789',
73 & string(first:first)).gt.0))
then 74 read(string(first:last), *) numbers(i)
80 do while ((first.lt.length).and.
81 & (index(
'.0123456789', string(first:first)).eq.0))
85 do while ((last.lt.length).and.
86 & (index(
'.0123456789', string(last:last)).gt.0))
89 read(string(first:last), *)
90 if ((first.le.length).and.(index(
'0123456789',
91 & string(first:first)).gt.0))
then 92 read(string(first:last), *) seconds
96 if ((numbers(1).gt.0).or.(numbers(2).gt.0))
then 107 date(i+2)=numbers(i+3)
111 seconds=(seconds-dble(date(5)))*1000.d0
113 seconds=(seconds-dble(date(6)))*1000.d0
114 date(7)=int(seconds+0.5d0)
void time_setdoy(timeint day, timeint month, time_Ts *Pdate)
void time_clear(time_Ts *Pdate)
void time_norm(time_Ts *Pdate)
void time_fullyear(timeint *year)