1 subroutine gregor(JULDAY, YEAR, MONTH, DAY)
26 integer DAY, MONTH, YEAR, JULDAY, JDAYS(12,2), II
27 data jdays/0,31,59,90,120,151,181,212,243,273,304,334,
28 . 0,31,60,91,121,152,182,213,244,274,305,335/
31 if (leap(year)) ii = 2
35 if (julday .gt. jdays(month,ii))
go to 20
40 day = julday - jdays(month,ii)