1 subroutine utdhlg ( ladate, langue )
3 c ______________________________________________________________________
7 c Outil de Maillage Adaptatif par Raffinement et Deraffinement d'EDF R&D
9 c Version originale enregistree le 18 juin 1996 sous le numero 96036
10 c aupres des huissiers de justice Simart et Lavoir a Clamart
11 c Version 11.2 enregistree le 13 fevrier 2015 sous le numero 2015/014
12 c aupres des huissiers de justice
13 c Lavoir, Silinski & Cherqui-Abrahmi a Clamart
15 c HOMARD est une marque deposee d'Electricite de France
21 c ______________________________________________________________________
23 c donne la date et l'heure sous forme longue
24 c ______________________________________________________________________
26 c . nom . e/s . taille . description .
27 c .____________________________________________________________________.
28 c . ladate . s . 1 . date et heure sous forme longue .
29 c . langue . s . 1 . langue retenue .
30 c . . . . 1 : francais, 2 : anglais .
31 c ______________________________________________________________________
34 c 0. declarations et dimensionnement
37 c 0.1. ==> generalites
52 c 0.4. ==> variables locales
54 integer numann, nummoi, numjou, numjos
55 integer numheu, nummin, numsec
60 c 0.5. ==> initialisations
64 c_______________________________________________________________________c
66 c 1. acquisition de la date
69 call dmjohe ( numann, nummoi, numjou, numjos,
70 > numheu, nummin, numsec )
76 c 2.1. ==> initialisation
78 c 123456789012345678901234567890123456789012345678
81 if ( langue.ge.1 .and. langue.le.nblang ) then
87 c 2.2. ==> nom et numero du jour
89 if ( numjos.le.0 ) then
92 ifin = lgnomj(langlo,numjos)
93 ladate (1:ifin) = nomjou(langlo,numjos)
97 if ( numjou.le.9 ) then
99 write ( ladate (ideb:ifin),'(i1)' ) numjou
102 write ( ladate (ideb:ifin),'(i2)' ) numjou
105 c 2.3. ==> nom du mois
107 if (nummoi.gt.0) then
109 ifin = ideb + lgnomm(langlo,mod(nummoi-1,12)+1) - 1
110 ladate (ideb:ifin) = nommoi(langlo,mod(nummoi-1,12)+1)
113 c 2.4. ==> numero de l'annee
117 write ( ladate (ideb:ifin),'(i4)' ) numann
122 if ( langlo.eq.1 ) then
124 ladate (ideb:ifin) = 'a '
127 ladate (ideb:ifin) = 'at '
131 if ( numheu.le.9 ) then
133 write ( ladate (ideb:ifin),'(i1)' ) numheu
136 write ( ladate (ideb:ifin),'(i2)' ) numheu
141 ladate (ideb:ifin) = ' h '
144 if ( nummin.le.9 ) then
146 write ( ladate (ideb:ifin),'(i1)' ) nummin
149 write ( ladate (ideb:ifin),'(i2)' ) nummin
154 ladate (ideb:ifin) = ' mn '
157 if ( numsec.le.9 ) then
159 write ( ladate (ideb:ifin),'(i1)' ) numsec
162 write ( ladate (ideb:ifin),'(i2)' ) numsec
167 ladate (ideb:ifin) = ' s'