24 character cdate*8,ctime*10,czone*5
27 call date_and_time(cdate,ctime,czone,idat)
28 read(czone,
'(i5)') idat(4)
32 idat(6)=idat(6)-mod(idat(4),100)
33 idat(5)=idat(5)-idat(4)/100
35 if(idat(6).lt.00)
then
38 elseif(idat(6).ge.60)
then
42 if(idat(5).lt.00)
then
44 jldayn=
iw3jdn(idat(1),idat(2),idat(3))-1
45 call w3fs26(jldayn,idat(1),idat(2),idat(3),idaywk,idayyr)
46 elseif(idat(5).ge.24)
then
48 jldayn=
iw3jdn(idat(1),idat(2),idat(3))+1
49 call w3fs26(jldayn,idat(1),idat(2),idat(3),idaywk,idayyr)
function iw3jdn(iyear, month, iday)
Computes julian day number from year (4 digits), month, and day.
subroutine w3fs26(jldayn, iyear, month, iday, idaywk, idayyr)
Computes year (4 digits), month, day, day of week, day of year from julian day number.