1 subroutine utdhuc ( datheu, numann,
4 c ______________________________________________________________________
8 c Outil de Maillage Adaptatif par Raffinement et Deraffinement d'EDF R&D
10 c Version originale enregistree le 18 juin 1996 sous le numero 96036
11 c aupres des huissiers de justice Simart et Lavoir a Clamart
12 c Version 11.2 enregistree le 13 fevrier 2015 sous le numero 2015/014
13 c aupres des huissiers de justice
14 c Lavoir, Silinski & Cherqui-Abrahmi a Clamart
16 c HOMARD est une marque deposee d'Electricite de France
22 c ______________________________________________________________________
24 c convertit la date et l'heure d'une forme US en une forme compacte
25 c ______________________________________________________________________
27 c . nom . e/s . taille . description .
28 c .____________________________________________________________________.
29 c . datheu . s . 1 . nombre de secondes depuis le debut de l'an .
30 c . numann . s . 1 . numero de l'annee (complet: exemple 1996) .
31 c . dateus . e . ch9 . date au format americain 'dd-mon-yy' .
32 c . heurus . e . ch8 . heure au format americain 'hh:mm:ss' .
33 c . codret . s . 1 . code de retour .
34 c ______________________________________________________________________
37 c 0. declarations et dimensionnement
40 c 0.1. ==> generalites
49 integer datheu, numann
55 c 0.4. ==> variables locales
57 integer nummoi, numjou, numheu, nummin, numsec
60 character*3 tabmon (12)
80 c 2. determination des differents numeros
81 c remarque : on suppose que l'on ne prendra pas des maillages
82 c anterieurs a 1970 et qu'apres 2070, on aura recode ...
87 if ( index('0123456789',dateus(8:8)).gt.0 .and.
88 > index('0123456789',dateus(9:9)).gt.0 ) then
90 read ( dateus (8:9),'(i2)' ) numann
91 if ( numann.lt.70 ) then
92 numann = 2000 + numann
94 numann = 1900 + numann
107 if ( dateus (4:6).eq.tabmon(iaux) ) then
117 if ( index(' 0123',dateus(1:1)).gt.0 .and.
118 > index('0123456789',dateus(2:2)).gt.0 ) then
120 read ( dateus (1:2),'(i2)' ) numjou
122 if ( numjou.le.0 .or. numjou.gt.31 ) then
127 else if ( dateus(2:2).eq.' ' .and.
128 > index('123456789',dateus(1:1)).gt.0 ) then
130 read ( dateus (1:1),'(i1)' ) numjou
139 c ----------------------
143 if ( index(' 012',heurus(1:1)).gt.0 .and.
144 > index('0123456789',heurus(2:2)).gt.0 ) then
146 read ( heurus (1:2),'(i2)' ) numheu
148 if (numheu.gt.23) then
153 else if ( heurus(2:2).eq.' ' .and.
154 > index('0123456789',heurus(1:1)).gt.0 ) then
156 read ( heurus (1:1),'(i1)' ) numheu
165 if ( index(' 012345',heurus(4:4)).gt.0 .and.
166 > index('0123456789',heurus(5:5)).gt.0 ) then
168 read ( heurus (4:5),'(i2)' ) nummin
170 if (nummin.gt.59) then
175 else if ( heurus(5:5).eq.' ' .and.
176 > index('0123456789',heurus(4:4)).gt.0 ) then
178 read ( heurus (4:4),'(i1)' ) nummin
187 if ( index(' 012345',heurus(7:7)).gt.0 .and.
188 > index('0123456789',heurus(8:8)).gt.0 ) then
190 read ( heurus (7:8),'(i2)' ) numsec
192 if (numsec.gt.59) then
197 else if ( heurus(8:8).eq.' ' .and.
198 > index('0123456789',heurus(7:7)).gt.0 ) then
200 read ( heurus (7:7),'(i1)' ) numsec
210 c 3. appel du programme generique
213 if ( codret.eq.0 ) then
215 call utdhlc ( datheu, numann,
216 > nummoi, numjou, numheu, nummin, numsec,