Example #1
0
    def start_date(self):
        """
        A Python date instance with the start date.

        The start time is taken from the SMSPEC file, and in case not
        all timesteps have been loaded, e.g. for a restarted case, the
        returned start_date might be different from the datetime of
        the first (loaded) timestep.
        """
        ctime = EclSum.cNamespace().get_start_date( self )
        return ctime.date()
Example #2
0
 def data_start(self):
     """
     The first date we have data for.
     """
     ctime = EclSum.cNamespace().get_data_start( self )
     return ctime.date()
Example #3
0
 def end_date(self):
     """
     The date of the last (loaded) time step.
     """
     ctime = EclSum.cNamespace().get_end_date( self )
     return ctime.date()
Example #4
0
 def get_report_time( self , report):
     """
     Will return the datetime corresponding to the report_step @report.
     """
     ctime = EclSum.cNamespace().get_report_time( self , report )
     return ctime.date()