def setStartRunTime( self, starttime, duration ): start = timestamp( parse( starttime ) ) stop = start + parseDuration( duration ) self["Observation.startTime"] = format( start ) self["Observation.stopTime"] = format( stop )
def setStartStopTime( self, starttime, stoptime ): start = timestamp( parse( starttime ) ) stop = timestamp( parse( stoptime ) ) self["Observation.startTime"] = format( start ) self["Observation.stopTime"] = format( stop )