NCEPLIBS-w3emc  2.11.0
w3difdat.f
Go to the documentation of this file.
1 
4 
28  subroutine w3difdat(jdat,idat,it,rinc)
29  integer jdat(8),idat(8)
30  real rinc(5)
31  real rinc1(5)
32 ! difference the days and time and put into canonical form
33  rinc1(1)=iw3jdn(jdat(1),jdat(2),jdat(3))-
34  & iw3jdn(idat(1),idat(2),idat(3))
35  rinc1(2:5)=jdat(5:8)-idat(5:8)
36  call w3reddat(it,rinc1,rinc)
37 ! - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
38  end
function iw3jdn(IYEAR, MONTH, IDAY)
Computes julian day number from year (4 digits), month, and day.
Definition: iw3jdn.f:42
subroutine w3difdat(jdat, idat, it, rinc)
Returns the elapsed time interval from an NCEP absolute date and time given in the second argument un...
Definition: w3difdat.f:29
subroutine w3reddat(it, rinc, dinc)
This subprogram reduces an ncep relative time interval into one of seven canonical forms,...
Definition: w3reddat.f:86