Module time -- keep control of time


INTERFACE:

   MODULE time
DESCRIPTION:

This module provides a number of routines/functions and variables related to the mode time in GOTM. The basic concept used in this module is that time is expressed as two integers -- one is the true Julian day and the other is seconds since midnight. All calculations with time then become very simple operations on integers.


USES:

   IMPLICIT NONE
   default: all is private.
   private
PUBLIC MEMBER FUNCTIONS:
   public                              :: init_time, calendar_date
   public                              :: julian_day, update_time
   public                              :: write_time_string
   public                              :: time_diff
   public                              :: sunrise_sunset
 ifdef _PRINTSTATE_
   public                              :: print_state_time
 endif
PUBLIC DATA MEMBERS:
   character(len=19), public           :: timestr
   character(len=19), public           :: start
   character(len=19), public           :: stop
   REALTYPE,          public           :: timestep
   REALTYPE,          public           :: fsecs,simtime
   integer,target,    public           :: julianday,secondsofday
   integer,target,    public           :: yearday
   integer,           public           :: timefmt
   integer,           public           :: MinN,MaxN
REVISION HISTORY:
   Original author(s): Karsten Bolding & Hans Burchard



Subsections

Karsten Bolding 2012-12-28