\hypertarget{dcdatetimeadd_8f90}{}\section{dc\+\_\+utils/dcdatetimeadd.f90 File Reference}
\label{dcdatetimeadd_8f90}\index{dc\+\_\+utils/dcdatetimeadd.\+f90@{dc\+\_\+utils/dcdatetimeadd.\+f90}}
\subsection*{Functions/\+Subroutines}
\begin{DoxyCompactItemize}
\item 
type(dc\+\_\+datetime) function \hyperlink{dcdatetimeadd_8f90_a4e4206fb90155034c1ff9b2daa2a12d0}{dcdatetime\+\_\+add\+\_\+ft} (diff, time)
\item 
type(dc\+\_\+datetime) function \hyperlink{dcdatetimeadd_8f90_a1f8d3aeff828de96917e4b9673b45f6c}{dcdatetime\+\_\+add\+\_\+tf} (time, diff)
\item 
type(dc\+\_\+difftime) function \hyperlink{dcdatetimeadd_8f90_a3a321fd0ab8dda2f2201f9fe3975c670}{dcdatetime\+\_\+add\+\_\+ff} (diff1, diff2)
\item 
type(dc\+\_\+difftime) function \hyperlink{dcdatetimeadd_8f90_a0941a367ecfe0b0f4bb2abb073019744}{dcdatetime\+\_\+add\+\_\+fd} (diff, sec)
\item 
type(dc\+\_\+difftime) function \hyperlink{dcdatetimeadd_8f90_a8b025dfa970f1a2081ab9c5a27548a1e}{dcdatetime\+\_\+add\+\_\+fr} (diff, sec)
\item 
type(dc\+\_\+difftime) function \hyperlink{dcdatetimeadd_8f90_adb87a2542615465fbed0555dda1b1e6d}{dcdatetime\+\_\+add\+\_\+fi} (diff, sec)
\end{DoxyCompactItemize}


\subsection{Function/\+Subroutine Documentation}
\mbox{\Hypertarget{dcdatetimeadd_8f90_a0941a367ecfe0b0f4bb2abb073019744}\label{dcdatetimeadd_8f90_a0941a367ecfe0b0f4bb2abb073019744}} 
\index{dcdatetimeadd.\+f90@{dcdatetimeadd.\+f90}!dcdatetime\+\_\+add\+\_\+fd@{dcdatetime\+\_\+add\+\_\+fd}}
\index{dcdatetime\+\_\+add\+\_\+fd@{dcdatetime\+\_\+add\+\_\+fd}!dcdatetimeadd.\+f90@{dcdatetimeadd.\+f90}}
\subsubsection{\texorpdfstring{dcdatetime\+\_\+add\+\_\+fd()}{dcdatetime\_add\_fd()}}
{\footnotesize\ttfamily type(dc\+\_\+difftime) function dcdatetime\+\_\+add\+\_\+fd (\begin{DoxyParamCaption}\item[{type(dc\+\_\+difftime), intent(in)}]{diff,  }\item[{real(dp), intent(in)}]{sec }\end{DoxyParamCaption})}



Definition at line 68 of file dcdatetimeadd.\+f90.



References dc\+\_\+date\+\_\+internal\+::dcdate\+\_\+nondimcheck(), dc\+\_\+date\+\_\+internal\+::dcdate\+\_\+normalize(), and dc\+\_\+types\+::dp.


\begin{DoxyCode}
68     \textcolor{keywordtype}{use }\hyperlink{namespacedc__date__types}{dc\_date\_types}\textcolor{keywordtype}{, only}: dc\_datetime, dc\_difftime
69     \textcolor{keywordtype}{use }\hyperlink{namespacedc__date__internal}{dc\_date\_internal}\textcolor{keywordtype}{, only}: \hyperlink{namespacedc__date__internal_ac3f0935623089b447b453928ff99b788}{dcdate\_normalize}, 
      \hyperlink{namespacedc__date__internal_ad90bad9c02e4b49abc3d68572bb74798}{dcdate\_nondimcheck}
70     \textcolor{keywordtype}{use }\hyperlink{namespacedc__scaledsec}{dc\_scaledsec}\textcolor{keywordtype}{, only}: \textcolor{keyword}{operator}(+)
71     \textcolor{keywordtype}{use }\hyperlink{namespacedc__types}{dc\_types}\textcolor{keywordtype}{, only}: \hyperlink{namespacedc__types_ac74a34430fcd3d0eb2344f19d536c086}{dp}
72     \textcolor{keywordtype}{implicit none}
73     \textcolor{keywordtype}{type}(dc\_difftime):: result
74     \textcolor{keywordtype}{type}(dc\_difftime), \textcolor{keywordtype}{intent(in)}:: diff
75     \textcolor{keywordtype}{real(DP)}, \textcolor{keywordtype}{intent(in)}:: sec
76   \textcolor{keywordflow}{continue}
77     result % mon = diff % mon
78     result % day = diff % day
79     result % sec = diff % sec + sec
80     result % day\_seconds = diff % day\_seconds
81     \textcolor{keyword}{call }\hyperlink{namespacedc__date__internal_ac3f0935623089b447b453928ff99b788}{dcdate\_normalize}(result % day, result % sec, result % day\_seconds, result %
       nondim\_flag)
\end{DoxyCode}
Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{dcdatetimeadd_8f90_a0941a367ecfe0b0f4bb2abb073019744_cgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{dcdatetimeadd_8f90_a3a321fd0ab8dda2f2201f9fe3975c670}\label{dcdatetimeadd_8f90_a3a321fd0ab8dda2f2201f9fe3975c670}} 
\index{dcdatetimeadd.\+f90@{dcdatetimeadd.\+f90}!dcdatetime\+\_\+add\+\_\+ff@{dcdatetime\+\_\+add\+\_\+ff}}
\index{dcdatetime\+\_\+add\+\_\+ff@{dcdatetime\+\_\+add\+\_\+ff}!dcdatetimeadd.\+f90@{dcdatetimeadd.\+f90}}
\subsubsection{\texorpdfstring{dcdatetime\+\_\+add\+\_\+ff()}{dcdatetime\_add\_ff()}}
{\footnotesize\ttfamily type(dc\+\_\+difftime) function dcdatetime\+\_\+add\+\_\+ff (\begin{DoxyParamCaption}\item[{type(dc\+\_\+difftime), intent(in)}]{diff1,  }\item[{type(dc\+\_\+difftime), intent(in)}]{diff2 }\end{DoxyParamCaption})}



Definition at line 52 of file dcdatetimeadd.\+f90.



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


\begin{DoxyCode}
52     \textcolor{keywordtype}{use }\hyperlink{namespacedc__date__types}{dc\_date\_types}\textcolor{keywordtype}{, only}: dc\_datetime, dc\_difftime
53     \textcolor{keywordtype}{use }\hyperlink{namespacedc__date__internal}{dc\_date\_internal}\textcolor{keywordtype}{, only}: \hyperlink{namespacedc__date__internal_ac3f0935623089b447b453928ff99b788}{dcdate\_normalize}, 
      \hyperlink{namespacedc__date__internal_ad90bad9c02e4b49abc3d68572bb74798}{dcdate\_nondimcheck}
54     \textcolor{keywordtype}{use }\hyperlink{namespacedc__scaledsec}{dc\_scaledsec}\textcolor{keywordtype}{, only}: \textcolor{keyword}{operator}(+)
55     \textcolor{keywordtype}{implicit none}
56     \textcolor{keywordtype}{type}(dc\_difftime):: result
57     \textcolor{keywordtype}{type}(dc\_difftime), \textcolor{keywordtype}{intent(in)}:: diff1, diff2
58   \textcolor{keywordflow}{continue}
59     result % mon = diff1 % mon + diff2 % mon
60     result % day = diff1 % day + diff2 % day
61     result % sec = diff1 % sec + diff2 % sec
62     result % day\_seconds = diff1 % day\_seconds
63     \textcolor{keyword}{call }\hyperlink{namespacedc__date__internal_ad90bad9c02e4b49abc3d68572bb74798}{dcdate\_nondimcheck}(\textcolor{keyword}{operator}\textcolor{stringliteral}{'dc\_date#(+)'}, diff1, diff2, result)
64     \textcolor{keyword}{call }\hyperlink{namespacedc__date__internal_ac3f0935623089b447b453928ff99b788}{dcdate\_normalize}(result % day, result % sec, result % day\_seconds, result %
       nondim\_flag)
\end{DoxyCode}
Here is the call graph for this function\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{dcdatetimeadd_8f90_a3a321fd0ab8dda2f2201f9fe3975c670_cgraph}
\end{center}
\end{figure}
\mbox{\Hypertarget{dcdatetimeadd_8f90_adb87a2542615465fbed0555dda1b1e6d}\label{dcdatetimeadd_8f90_adb87a2542615465fbed0555dda1b1e6d}} 
\index{dcdatetimeadd.\+f90@{dcdatetimeadd.\+f90}!dcdatetime\+\_\+add\+\_\+fi@{dcdatetime\+\_\+add\+\_\+fi}}
\index{dcdatetime\+\_\+add\+\_\+fi@{dcdatetime\+\_\+add\+\_\+fi}!dcdatetimeadd.\+f90@{dcdatetimeadd.\+f90}}
\subsubsection{\texorpdfstring{dcdatetime\+\_\+add\+\_\+fi()}{dcdatetime\_add\_fi()}}
{\footnotesize\ttfamily type(dc\+\_\+difftime) function dcdatetime\+\_\+add\+\_\+fi (\begin{DoxyParamCaption}\item[{type(dc\+\_\+difftime), intent(in)}]{diff,  }\item[{integer, intent(in)}]{sec }\end{DoxyParamCaption})}



Definition at line 98 of file dcdatetimeadd.\+f90.



References dc\+\_\+types\+::dp.


\begin{DoxyCode}
98     \textcolor{keywordtype}{use }\hyperlink{namespacedc__date__types}{dc\_date\_types}\textcolor{keywordtype}{, only}: dc\_datetime, dc\_difftime
99     \textcolor{keywordtype}{use }\hyperlink{namespacedc__date__generic}{dc\_date\_generic}\textcolor{keywordtype}{, only}: \textcolor{keyword}{operator}(+)
100     \textcolor{keywordtype}{use }\hyperlink{namespacedc__scaledsec}{dc\_scaledsec}\textcolor{keywordtype}{, only}: \textcolor{keyword}{operator}(+)
101     \textcolor{keywordtype}{use }\hyperlink{namespacedc__types}{dc\_types}\textcolor{keywordtype}{, only}: \hyperlink{namespacedc__types_ac74a34430fcd3d0eb2344f19d536c086}{dp}
102     \textcolor{keywordtype}{implicit none}
103     \textcolor{keywordtype}{type}(dc\_difftime):: result
104     \textcolor{keywordtype}{type}(dc\_difftime), \textcolor{keywordtype}{intent(in)}:: diff
105     \textcolor{keywordtype}{integer}, \textcolor{keywordtype}{intent(in)}:: sec
106   \textcolor{keywordflow}{continue}
107     result = diff + \textcolor{keywordtype}{real}( sec, \hyperlink{namespacedc__types_ac74a34430fcd3d0eb2344f19d536c086}{dp} )
\end{DoxyCode}
\mbox{\Hypertarget{dcdatetimeadd_8f90_a8b025dfa970f1a2081ab9c5a27548a1e}\label{dcdatetimeadd_8f90_a8b025dfa970f1a2081ab9c5a27548a1e}} 
\index{dcdatetimeadd.\+f90@{dcdatetimeadd.\+f90}!dcdatetime\+\_\+add\+\_\+fr@{dcdatetime\+\_\+add\+\_\+fr}}
\index{dcdatetime\+\_\+add\+\_\+fr@{dcdatetime\+\_\+add\+\_\+fr}!dcdatetimeadd.\+f90@{dcdatetimeadd.\+f90}}
\subsubsection{\texorpdfstring{dcdatetime\+\_\+add\+\_\+fr()}{dcdatetime\_add\_fr()}}
{\footnotesize\ttfamily type(dc\+\_\+difftime) function dcdatetime\+\_\+add\+\_\+fr (\begin{DoxyParamCaption}\item[{type(dc\+\_\+difftime), intent(in)}]{diff,  }\item[{real, intent(in)}]{sec }\end{DoxyParamCaption})}



Definition at line 85 of file dcdatetimeadd.\+f90.



References dc\+\_\+types\+::dp.


\begin{DoxyCode}
85     \textcolor{keywordtype}{use }\hyperlink{namespacedc__date__types}{dc\_date\_types}\textcolor{keywordtype}{, only}: dc\_datetime, dc\_difftime
86     \textcolor{keywordtype}{use }\hyperlink{namespacedc__date__generic}{dc\_date\_generic}\textcolor{keywordtype}{, only}: \textcolor{keyword}{operator}(+)
87     \textcolor{keywordtype}{use }\hyperlink{namespacedc__scaledsec}{dc\_scaledsec}\textcolor{keywordtype}{, only}: \textcolor{keyword}{operator}(+)
88     \textcolor{keywordtype}{use }\hyperlink{namespacedc__types}{dc\_types}\textcolor{keywordtype}{, only}: \hyperlink{namespacedc__types_ac74a34430fcd3d0eb2344f19d536c086}{dp}
89     \textcolor{keywordtype}{implicit none}
90     \textcolor{keywordtype}{type}(dc\_difftime):: result
91     \textcolor{keywordtype}{type}(dc\_difftime), \textcolor{keywordtype}{intent(in)}:: diff
92     \textcolor{keywordtype}{real}, \textcolor{keywordtype}{intent(in)}:: sec
93   \textcolor{keywordflow}{continue}
94     result = diff + \textcolor{keywordtype}{real}( sec, \hyperlink{namespacedc__types_ac74a34430fcd3d0eb2344f19d536c086}{dp} )
\end{DoxyCode}
\mbox{\Hypertarget{dcdatetimeadd_8f90_a4e4206fb90155034c1ff9b2daa2a12d0}\label{dcdatetimeadd_8f90_a4e4206fb90155034c1ff9b2daa2a12d0}} 
\index{dcdatetimeadd.\+f90@{dcdatetimeadd.\+f90}!dcdatetime\+\_\+add\+\_\+ft@{dcdatetime\+\_\+add\+\_\+ft}}
\index{dcdatetime\+\_\+add\+\_\+ft@{dcdatetime\+\_\+add\+\_\+ft}!dcdatetimeadd.\+f90@{dcdatetimeadd.\+f90}}
\subsubsection{\texorpdfstring{dcdatetime\+\_\+add\+\_\+ft()}{dcdatetime\_add\_ft()}}
{\footnotesize\ttfamily type(dc\+\_\+datetime) function dcdatetime\+\_\+add\+\_\+ft (\begin{DoxyParamCaption}\item[{type(dc\+\_\+difftime), intent(in)}]{diff,  }\item[{type(dc\+\_\+datetime), intent(in)}]{time }\end{DoxyParamCaption})}



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


\begin{DoxyCode}
11     \textcolor{comment}{!}
12     \textcolor{comment}{! 2 つの日時 (DC\_DATETIME 型) もしくは}
13     \textcolor{comment}{! 日時差 (DC\_DIFFTIME 型)の加算を行います.}
14     \textcolor{comment}{!}
15     \textcolor{keywordtype}{use }\hyperlink{namespacedc__date__types}{dc\_date\_types}\textcolor{keywordtype}{, only}: dc\_datetime, dc\_difftime
16     \textcolor{keywordtype}{use }\hyperlink{namespacedc__date__generic}{dc\_date\_generic}\textcolor{keywordtype}{, only}: dcdatetimecreate, \hyperlink{interfacedc__date__generic_1_1eval}{eval}
17     \textcolor{keywordtype}{use }\hyperlink{namespacedc__scaledsec}{dc\_scaledsec}\textcolor{keywordtype}{, only}: dc\_scaled\_sec, &
18       & \textcolor{keyword}{operator}(<), \textcolor{keyword}{operator}(>), \textcolor{keyword}{operator}(<=), \textcolor{keyword}{operator}(>=), &
19       & \textcolor{keyword}{operator}(+), \textcolor{keyword}{operator}(-), \textcolor{keyword}{operator}(*), \textcolor{keyword}{operator}(/), &
20       & modulo, int, abs, sign
21     \textcolor{keywordtype}{implicit none}
22     \textcolor{keywordtype}{type}(dc\_datetime):: result
23     \textcolor{keywordtype}{type}(dc\_difftime), \textcolor{keywordtype}{intent(in)}:: diff
24     \textcolor{keywordtype}{type}(dc\_datetime), \textcolor{keywordtype}{intent(in)}:: time
25     \textcolor{keywordtype}{type}(dc\_scaled\_sec):: time\_year, time\_mon, time\_day, time\_sec
26     \textcolor{keywordtype}{integer}:: time\_caltype
27     \textcolor{keywordtype}{character(6)}:: time\_zone
28   \textcolor{keywordflow}{continue}
29     \textcolor{keyword}{call }\hyperlink{interfacedc__date__generic_1_1eval}{eval}(time, sclyear = time\_year, sclmon = time\_mon, &
30       & sclday = time\_day, sclsec = time\_sec, &
31       & caltype = time\_caltype, zone = time\_zone)
32     \textcolor{keyword}{call }dcdatetimecreate(result, sclyear = time\_year, &
33       & sclmon = time\_mon + diff % mon, &
34       & sclday = time\_day + diff % day, &
35       & sclsec = time\_sec + diff % sec, &
36       & caltype = time\_caltype, zone = time\_zone)
\end{DoxyCode}
\mbox{\Hypertarget{dcdatetimeadd_8f90_a1f8d3aeff828de96917e4b9673b45f6c}\label{dcdatetimeadd_8f90_a1f8d3aeff828de96917e4b9673b45f6c}} 
\index{dcdatetimeadd.\+f90@{dcdatetimeadd.\+f90}!dcdatetime\+\_\+add\+\_\+tf@{dcdatetime\+\_\+add\+\_\+tf}}
\index{dcdatetime\+\_\+add\+\_\+tf@{dcdatetime\+\_\+add\+\_\+tf}!dcdatetimeadd.\+f90@{dcdatetimeadd.\+f90}}
\subsubsection{\texorpdfstring{dcdatetime\+\_\+add\+\_\+tf()}{dcdatetime\_add\_tf()}}
{\footnotesize\ttfamily type(dc\+\_\+datetime) function dcdatetime\+\_\+add\+\_\+tf (\begin{DoxyParamCaption}\item[{type(dc\+\_\+datetime), intent(in)}]{time,  }\item[{type(dc\+\_\+difftime), intent(in)}]{diff }\end{DoxyParamCaption})}



Definition at line 40 of file dcdatetimeadd.\+f90.



References dc\+\_\+types\+::dp.


\begin{DoxyCode}
40     \textcolor{keywordtype}{use }\hyperlink{namespacedc__date__generic}{dc\_date\_generic}\textcolor{keywordtype}{, only}: \textcolor{keyword}{operator}(+)
41     \textcolor{keywordtype}{use }\hyperlink{namespacedc__date__types}{dc\_date\_types}\textcolor{keywordtype}{, only}: dc\_datetime, dc\_difftime
42     \textcolor{keywordtype}{use }\hyperlink{namespacedc__types}{dc\_types}\textcolor{keywordtype}{, only}: \hyperlink{namespacedc__types_ac74a34430fcd3d0eb2344f19d536c086}{dp}
43     \textcolor{keywordtype}{implicit none}
44     \textcolor{keywordtype}{type}(dc\_datetime):: result
45     \textcolor{keywordtype}{type}(dc\_datetime), \textcolor{keywordtype}{intent(in)}:: time
46     \textcolor{keywordtype}{type}(dc\_difftime), \textcolor{keywordtype}{intent(in)}:: diff
47   \textcolor{keywordflow}{continue}
48     result = diff + time
\end{DoxyCode}
