\hypertarget{dcdatetimemax_8f90}{}\section{dc\+\_\+utils/dcdatetimemax.f90 File Reference}
\label{dcdatetimemax_8f90}\index{dc\+\_\+utils/dcdatetimemax.\+f90@{dc\+\_\+utils/dcdatetimemax.\+f90}}
\subsection*{Functions/\+Subroutines}
\begin{DoxyCompactItemize}
\item 
type(dc\+\_\+datetime) function \hyperlink{dcdatetimemax_8f90_a7380234bfac576aef9d3a757bbe79130}{dcdatetime\+\_\+max\+\_\+tt} (time1, time2)
\item 
type(dc\+\_\+difftime) function \hyperlink{dcdatetimemax_8f90_aa75dab1ddd44c45ba1434799ca647872}{dcdatetime\+\_\+max\+\_\+ff} (diff1, diff2)
\end{DoxyCompactItemize}


\subsection{Function/\+Subroutine Documentation}
\mbox{\Hypertarget{dcdatetimemax_8f90_aa75dab1ddd44c45ba1434799ca647872}\label{dcdatetimemax_8f90_aa75dab1ddd44c45ba1434799ca647872}} 
\index{dcdatetimemax.\+f90@{dcdatetimemax.\+f90}!dcdatetime\+\_\+max\+\_\+ff@{dcdatetime\+\_\+max\+\_\+ff}}
\index{dcdatetime\+\_\+max\+\_\+ff@{dcdatetime\+\_\+max\+\_\+ff}!dcdatetimemax.\+f90@{dcdatetimemax.\+f90}}
\subsubsection{\texorpdfstring{dcdatetime\+\_\+max\+\_\+ff()}{dcdatetime\_max\_ff()}}
{\footnotesize\ttfamily type(dc\+\_\+difftime) function dcdatetime\+\_\+max\+\_\+ff (\begin{DoxyParamCaption}\item[{type(dc\+\_\+difftime), intent(in)}]{diff1,  }\item[{type(dc\+\_\+difftime), intent(in)}]{diff2 }\end{DoxyParamCaption})}



Definition at line 28 of file dcdatetimemax.\+f90.



References dc\+\_\+date\+\_\+internal\+::dcdate\+\_\+nondimcheck().


\begin{DoxyCode}
28     \textcolor{comment}{!}
29     \textcolor{comment}{! 2 つの引数の日時差を比較し, より大きい方を返します. }
30     \textcolor{comment}{!}
31     \textcolor{keywordtype}{use }\hyperlink{namespacedc__date__generic}{dc\_date\_generic}\textcolor{keywordtype}{, only}: \textcolor{keyword}{operator}(>)
32     \textcolor{keywordtype}{use }\hyperlink{namespacedc__date__types}{dc\_date\_types}\textcolor{keywordtype}{, only}: \hyperlink{structdc__date__types_1_1dc__datetime}{dc\_datetime}, \hyperlink{structdc__date__types_1_1dc__difftime}{dc\_difftime}
33     \textcolor{keywordtype}{use }\hyperlink{namespacedc__date__internal}{dc\_date\_internal}\textcolor{keywordtype}{, only}: \hyperlink{namespacedc__date__internal_ad90bad9c02e4b49abc3d68572bb74798}{dcdate\_nondimcheck}
34     \textcolor{keywordtype}{implicit none}
35     \textcolor{keywordtype}{type}(\hyperlink{structdc__date__types_1_1dc__difftime}{dc\_difftime}):: result
36     \textcolor{keywordtype}{type}(\hyperlink{structdc__date__types_1_1dc__difftime}{dc\_difftime}), \textcolor{keywordtype}{intent(in)}:: diff1, diff2
37   \textcolor{keywordflow}{continue}
38     \textcolor{keywordflow}{if} ( diff1 > diff2 ) \textcolor{keywordflow}{then}
39       result = diff1
40     \textcolor{keywordflow}{else}
41       result = diff2
42 \textcolor{keywordflow}{    end if}
43     \textcolor{keyword}{call }\hyperlink{namespacedc__date__internal_ad90bad9c02e4b49abc3d68572bb74798}{dcdate\_nondimcheck}(\textcolor{stringliteral}{'dc\_date#max'}, diff1, diff2, result)
\end{DoxyCode}
Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{dcdatetimemax_8f90_aa75dab1ddd44c45ba1434799ca647872_cgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{dcdatetimemax_8f90_a7380234bfac576aef9d3a757bbe79130}\label{dcdatetimemax_8f90_a7380234bfac576aef9d3a757bbe79130}} 
\index{dcdatetimemax.\+f90@{dcdatetimemax.\+f90}!dcdatetime\+\_\+max\+\_\+tt@{dcdatetime\+\_\+max\+\_\+tt}}
\index{dcdatetime\+\_\+max\+\_\+tt@{dcdatetime\+\_\+max\+\_\+tt}!dcdatetimemax.\+f90@{dcdatetimemax.\+f90}}
\subsubsection{\texorpdfstring{dcdatetime\+\_\+max\+\_\+tt()}{dcdatetime\_max\_tt()}}
{\footnotesize\ttfamily type(dc\+\_\+datetime) function dcdatetime\+\_\+max\+\_\+tt (\begin{DoxyParamCaption}\item[{type(dc\+\_\+datetime), intent(in)}]{time1,  }\item[{type(dc\+\_\+datetime), intent(in)}]{time2 }\end{DoxyParamCaption})}



Definition at line 11 of file dcdatetimemax.\+f90.


\begin{DoxyCode}
11     \textcolor{comment}{!}
12     \textcolor{comment}{! 2 つの引数の日時を比較し, より日時が進んでいる方を返します. }
13     \textcolor{comment}{!}
14     \textcolor{keywordtype}{use }\hyperlink{namespacedc__date__generic}{dc\_date\_generic}\textcolor{keywordtype}{, only}: \textcolor{keyword}{operator}(>)
15     \textcolor{keywordtype}{use }\hyperlink{namespacedc__date__types}{dc\_date\_types}\textcolor{keywordtype}{, only}: \hyperlink{structdc__date__types_1_1dc__datetime}{dc\_datetime}, \hyperlink{structdc__date__types_1_1dc__difftime}{dc\_difftime}
16     \textcolor{keywordtype}{implicit none}
17     \textcolor{keywordtype}{type}(\hyperlink{structdc__date__types_1_1dc__datetime}{dc\_datetime}):: result
18     \textcolor{keywordtype}{type}(\hyperlink{structdc__date__types_1_1dc__datetime}{dc\_datetime}), \textcolor{keywordtype}{intent(in)}:: time1, time2
19   \textcolor{keywordflow}{continue}
20     \textcolor{keywordflow}{if} ( time1 > time2 ) \textcolor{keywordflow}{then}
21       result = time1
22     \textcolor{keywordflow}{else}
23       result = time2
24 \textcolor{keywordflow}{    end if}
\end{DoxyCode}
