Loading...
Searching...
No Matches
Functions/Subroutines
dcdatetimemax.f90 File Reference

Go to the source code of this file.

Functions/Subroutines

type(dc_datetime) function dcdatetime_max_tt (time1, time2)
 
type(dc_difftime) function dcdatetime_max_ff (diff1, diff2)
 

Function/Subroutine Documentation

◆ dcdatetime_max_ff()

type(dc_difftime) function dcdatetime_max_ff ( type(dc_difftime), intent(in)  diff1,
type(dc_difftime), intent(in)  diff2 
)

Definition at line 27 of file dcdatetimemax.f90.

28 !
29 ! 2 つの引数の日時差を比較し, より大きい方を返します.
30 !
31 use dc_date_generic, only: operator(>)
34 implicit none
35 type(DC_DIFFTIME):: result
36 type(DC_DIFFTIME), intent(in):: diff1, diff2
37 continue
38 if ( diff1 > diff2 ) then
39 result = diff1
40 else
41 result = diff2
42 end if
43 call dcdate_nondimcheck('dc_date#max', diff1, diff2, result)
subroutine, public dcdate_nondimcheck(opr, diff1, diff2, rslt)

References dc_date_internal::dcdate_nondimcheck().

Here is the call graph for this function:

◆ dcdatetime_max_tt()

type(dc_datetime) function dcdatetime_max_tt ( type(dc_datetime), intent(in)  time1,
type(dc_datetime), intent(in)  time2 
)

Definition at line 10 of file dcdatetimemax.f90.

11 !
12 ! 2 つの引数の日時を比較し, より日時が進んでいる方を返します.
13 !
14 use dc_date_generic, only: operator(>)
16 implicit none
17 type(DC_DATETIME):: result
18 type(DC_DATETIME), intent(in):: time1, time2
19 continue
20 if ( time1 > time2 ) then
21 result = time1
22 else
23 result = time2
24 end if