libtime++: Date and time calculation

◆ time_isleapyear()

logical function time_isleapyear ( integer  year)

Definition at line 31 of file time_isleapyear.f.

References time_fullyear(), and time_isleapyear().

31 c
32 c is true if year is a leap-year (else false ;-))
33 c
34 c input:
35 c year: full qualified year value to be checked for being a leap-year
36 c
37 c last change: V2.00 (05/08/2000)
38 c
39  integer year
40 cE
41  integer iyear
42  logical result
43 c
44  iyear=year
45  call time_fullyear(iyear)
46  result=(((mod(iyear,4).eq.0).and.(mod(iyear,100).ne.0)).or.
47  & (mod(iyear,400).eq.0))
48  time_isleapyear=result
49  return
integer time_isleapyear(timeint year)
void time_fullyear(timeint *year)
Here is the call graph for this function: