time_fex.tex
来自「CCSM Research Tools: Community Atmospher」· TEX 代码 · 共 40 行
TEX
40 行
% $Id: Time_fex.tex,v 1.1.6.1 2002/04/24 03:25:50 erik Exp $In the example below we demonstrate basic usage of the {\tt Time} class. Fora detailed description of the {\tt Time} class interface, see Appendix A.In the example below we initialize a {\tt Time} and increment it by anumber of days and seconds. Since no memory is allocated from the heapwhen a {\tt Time} is initialized, there is no need to deallocate a {\tt Time} object.\begin{verbatim} use ESMF_TimeMgmtMod type(ESMF_Time) :: startTime, endTime!------------------------------------------------------------------------------- ! Initialize a time interval to 90 days and 1800 seconds. !------------------------------------------------------------------------------- startTime = ESMF_TimeInit(90, 1800) !------------------------------------------------------------------------------- ! Increment the time by 10 days and 1200 seconds.!------------------------------------------------------------------------------- endTime = ESMF_TimeIncrement(startTime, 10, 1200)\end{verbatim}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?