1 subroutine utdhfc ( datheu, numann,
5 c ______________________________________________________________________
9 c Outil de Maillage Adaptatif par Raffinement et Deraffinement d'EDF R&D
11 c Version originale enregistree le 18 juin 1996 sous le numero 96036
12 c aupres des huissiers de justice Simart et Lavoir a Clamart
13 c Version 11.2 enregistree le 13 fevrier 2015 sous le numero 2015/014
14 c aupres des huissiers de justice
15 c Lavoir, Silinski & Cherqui-Abrahmi a Clamart
17 c HOMARD est une marque deposee d'Electricite de France
23 c ______________________________________________________________________
25 c convertit la date et l'heure
26 c de la forme Francaise en une forme compacte
27 c ______________________________________________________________________
29 c . nom . e/s . taille . description .
30 c .____________________________________________________________________.
31 c . datheu . s . 1 . nombre de secondeS depuis le debut de l'an .
32 c . numann . s . 1 . numero de l'annee (complet) .
33 c . datefr . e . ch8 . date au format francais 'jj/mm/aa' .
34 c . heurfr . e . ch8 . heure au format francais 'hh:mm:ss' .
35 c . codret . s . 1 . code de retour .
36 c ______________________________________________________________________
39 c 0. declarations et dimensionnement
42 c 0.1. ==> generalites
51 integer datheu, numann
57 c 0.4. ==> variables locales
59 integer nummoi, numjou, numheu, nummin, numsec
62 c 1. determination des differents numeros
63 c remarque : on suppose que l'on ne prendra pas des objets
64 c anterieurs a 1970 et qu'apres 2070, on aura recode ...
67 if ( index('123',datefr(1:1)).gt.0 .and.
68 > index('0123456789',datefr(2:2)).gt.0 ) then
70 read ( datefr (1:2),'(i2)' ) numjou
72 if ( numjou.gt.31 ) then
77 else if ( index(' 0',datefr(1:1)).gt.0 .and.
78 > index('123456789',datefr(2:2)).gt.0 ) then
80 read ( datefr (2:2),'(i1)' ) numjou
82 else if ( datefr(2:2).eq.' ' .and.
83 > index('123456789',datefr(1:1)).gt.0 ) then
85 read ( datefr (1:1),'(i1)' ) numjou
92 if ( index(' 01',datefr(4:4)).gt.0 .and.
93 > index('0123456789',datefr(5:5)).gt.0 ) then
95 read ( datefr (4:5),'(i2)' ) nummoi
97 if ( nummoi.le.0 .or. nummoi.gt.12 ) then
102 else if ( datefr(5:5).eq.' ' .and.
103 > index('123456789',datefr(4:4)).gt.0 ) then
105 read ( datefr (4:4),'(i1)' ) nummoi
112 if ( index('0123456789',datefr(7:7)).gt.0 .and.
113 > index('0123456789',datefr(8:8)).gt.0 ) then
115 read ( datefr (7:8),'(i2)' ) numann
116 if ( numann.lt.70 ) then
117 numann = 2000 + numann
119 numann = 1900 + numann
127 c apres la date, on s'occupe maintenant de l'heure :
129 if ( index(' 012',heurfr(1:1)).gt.0 .and.
130 > index('0123456789',heurfr(2:2)).gt.0 ) then
132 read ( heurfr (1:2),'(i2)' ) numheu
134 if (numheu.gt.23) then
139 else if ( heurfr(2:2).eq.' ' .and.
140 > index('0123456789',heurfr(1:1)).gt.0 ) then
142 read ( heurfr (1:1),'(i1)' ) numheu
151 if ( index(' 012345',heurfr(4:4)).gt.0 .and.
152 > index('0123456789',heurfr(5:5)).gt.0 ) then
154 read ( heurfr (4:5),'(i2)' ) nummin
156 if (nummin.gt.59) then
161 else if ( heurfr(5:5).eq.' ' .and.
162 > index('0123456789',heurfr(4:4)).gt.0 ) then
164 read ( heurfr (4:4),'(i1)' ) nummin
173 if ( index(' 012345',heurfr(7:7)).gt.0 .and.
174 > index('0123456789',heurfr(8:8)).gt.0 ) then
176 read ( heurfr (7:8),'(i2)' ) numsec
178 if (numsec.gt.59) then
183 else if ( heurfr(8:8).eq.' ' .and.
184 > index('0123456789',heurfr(7:7)).gt.0 ) then
186 read ( heurfr (7:7),'(i1)' ) numsec
188 if (numsec.gt.59) then
201 c 2. appel du programme generique
204 if ( codret.eq.0 ) then
206 call utdhlc ( datheu, numann,
207 > nummoi, numjou, numheu, nummin, numsec,