1 |
C $Header: /u/gcmpack/development/heimbach/ecco_env/pkg/cal/cal_compdates.F,v 1.4 2001/02/02 16:57:22 heimbach Exp $ |
2 |
|
3 |
#include "CAL_CPPOPTIONS.h" |
4 |
|
5 |
logical function cal_CompDates( |
6 |
I date_a, |
7 |
I date_b, |
8 |
I mythid |
9 |
& ) |
10 |
|
11 |
c ================================================================== |
12 |
c FUNCTION cal_CompDates |
13 |
c ================================================================== |
14 |
c |
15 |
c o Compare two calendar dates or time interval. |
16 |
c |
17 |
c started: Christian Eckert eckert@mit.edu 24-Feb-2000 |
18 |
c |
19 |
c - Introduced to calendar version 0.1.4 |
20 |
c |
21 |
c changed: |
22 |
c |
23 |
c ================================================================== |
24 |
c FUNCTION cal_CompDates |
25 |
c ================================================================== |
26 |
|
27 |
implicit none |
28 |
|
29 |
c == global variables == |
30 |
|
31 |
#include "cal.h" |
32 |
|
33 |
c == routine arguments == |
34 |
|
35 |
integer date_a(4) |
36 |
integer date_b(4) |
37 |
integer mythid |
38 |
|
39 |
c == local variables == |
40 |
|
41 |
c == end of interface == |
42 |
|
43 |
if ( ( date_a(1) .eq. date_b(1) ) .and. |
44 |
& ( date_a(2) .eq. date_b(2) ) .and. |
45 |
& ( date_a(3) .eq. date_b(3) ) .and. |
46 |
& ( date_a(4) .eq. date_b(4) ) ) then |
47 |
cal_CompDates = .true. |
48 |
else |
49 |
cal_CompDates = .false. |
50 |
endif |
51 |
|
52 |
return |
53 |
end |
54 |
|