NCEPLIBS-w3emc 2.12.0
Loading...
Searching...
No Matches
w3difdat.f File Reference

Return a time interval between two dates. More...

Go to the source code of this file.

Functions/Subroutines

subroutine w3difdat (jdat, idat, it, rinc)
 Returns the elapsed time interval from an NCEP absolute date and time given in the second argument until an NCEP absolute date and time given in the first argument.
 

Detailed Description

Return a time interval between two dates.

Author
Mark Iredell
Date
1998-01-05

Definition in file w3difdat.f.

Function/Subroutine Documentation

◆ w3difdat()

subroutine w3difdat ( integer, dimension(8)  jdat,
integer, dimension(8)  idat,
  it,
real, dimension(5)  rinc 
)

Returns the elapsed time interval from an NCEP absolute date and time given in the second argument until an NCEP absolute date and time given in the first argument.

The output time interval is in one of seven canonical forms of the ncep relative time interval data structure.

Program history log:

  • Mark Iredell 1998-01-05
Parameters
[in]JDATInteger (8) ncep absolute date and time (year, month, day, time zone, hour, minute, second, millisecond)
[in]IDATInteger (8) ncep absolute date and time (year, month, day, time zone, hour, minute, second, millisecond)
[in]ITInteger relative time interval format type (-1 for first reduced type (hours always positive), 0 for second reduced type (hours can be negative), 1 for days only, 2 for hours only, 3 for minutes only, 4 for seconds only, 5 for milliseconds only)
[out]RINCReal (5) ncep relative time interval (days, hours, minutes, seconds, milliseconds) (time interval is positive if jdat is later than idat.)
Author
Mark Iredell
Date
1998-01-05

Definition at line 28 of file w3difdat.f.