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
time_isleapyear
integer time_isleapyear(timeint year)
Definition:
ctime_isleapyear.c:35
time_fullyear
void time_fullyear(timeint *year)
Definition:
ctime_fullyear.c:35
Here is the call graph for this function:
kernel
time_isleapyear.f
Generated on Mon Aug 21 2023 17:36:10 for libtime++: Date and time calculation by
1.8.14