OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
leap.f
Go to the documentation of this file.
1 c************************ FUNCTION LEAP ******************************
2 c
3 c returns as "true" if YEAR is a leap year, else returns as "false".
4 c
5 c Created by Michael Darzi, GSC, 8/89
6 c To UNIX: BD Schieber, SAIC/GSC, 93
7 c***********************************************************************
8 c
9  logical function leap(YEAR)
10  integer*4 year
11 
12  if ((mod(year,400) .eq. 0) .or.
13  + ((mod(year,4).eq.0) .and. (mod(year,100).ne.0))) then
14  leap = .true.
15  else
16  leap = .false.
17  endif
18 
19  return
20  end
21 
logical function leap(YEAR)
Definition: leap.f:10