libtime++: Date and time calculation
time_isleapyear.f
Go to the documentation of this file.
1
c this is <time_isleapyear.f> (extracted from ../libtime.f)
2
c automatically generated by "SPLITF.PL V1.0 SPLIT Fortran source code"
3
c----------------------------------------------------------------------
4
c
5
c Copyright 2000 by Thomas Forbriger (IfG Stuttgart)
6
c
7
c ----
8
c libtime is free software; you can redistribute it and/or modify
9
c it under the terms of the GNU General Public License as published by
10
c the Free Software Foundation; either version 2 of the License, or
11
c (at your option) any later version.
12
c
13
c This program is distributed in the hope that it will be useful,
14
c but WITHOUT ANY WARRANTY; without even the implied warranty of
15
c MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
c GNU General Public License for more details.
17
c
18
c You should have received a copy of the GNU General Public License
19
c along with this program; if not, write to the Free Software
20
c Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
21
c ----
22
c
23
c check for leap year
24
c
25
c REVISIONS and CHANGES
26
c 05/08/2000 V2.0 Thomas Forbriger
27
c
28
c ============================================================================
29
cS
30
logical
function
time_isleapyear
(year)
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
50
end
51
c
52
c ----- END OF <time_isleapyear.f> -----
time_isleapyear
integer time_isleapyear(timeint year)
Definition:
ctime_isleapyear.c:35
time_fullyear
void time_fullyear(timeint *year)
Definition:
ctime_fullyear.c:35
kernel
time_isleapyear.f
Generated on Mon Aug 21 2023 17:36:10 for libtime++: Date and time calculation by
1.8.14