dm_time_diff Function

public impure elemental function dm_time_diff(time1, time2, seconds) result(rc)

Returns the time difference between time1 and time2 as 8-byte integer seconds [sec]. The function does not validate the time stamps. Make sure to only pass valid values. On error, the result seconds is huge(0_i8).

The function returns the following error codes:

  • E_INVALID if one time stamp or both are invalid.
  • E_SYSTEM if the system call failed.

Arguments

Type IntentOptional Attributes Name
character(len=TIME_LEN), intent(in) :: time1

ISO 8601 time stamp.

character(len=TIME_LEN), intent(in) :: time2

ISO 8601 time stamp.

integer(kind=i8), intent(out) :: seconds

Time delta [sec].

Return Value integer


Calls

proc~~dm_time_diff~~CallsGraph proc~dm_time_diff dm_time_diff proc~dm_is_error dm_is_error proc~dm_time_diff->proc~dm_is_error proc~dm_time_to_unix dm_time_to_unix proc~dm_time_diff->proc~dm_time_to_unix c_timegm c_timegm proc~dm_time_to_unix->c_timegm c_tm c_tm proc~dm_time_to_unix->c_tm