def GetStartTime(cron_cls):
 if (not cron_cls.start_time_randomization):
  return rdfvalue.RDFDatetime.Now()
 now = rdfvalue.RDFDatetime.Now()
 window_ms = cron_cls.frequency.microseconds
 start_time_ms = random.randint(now.AsMicroSecondsFromEpoch(), (now.AsMicroSecondsFromEpoch() + window_ms))
 return rdfvalue.RDFDatetime(start_time_ms)

def GetStartTime ( cron_cls ) : if ( not cron_cls . start_time_randomization ) : return rdfvalue . RDFDatetime . Now ( ) now = rdfvalue . RDFDatetime . Now ( ) window_ms = cron_cls . frequency . microseconds start_time_ms = random . randint ( now . AsMicroSecondsFromEpoch ( ) , ( now . AsMicroSecondsFromEpoch ( ) + window_ms ) ) return rdfvalue . RDFDatetime ( start_time_ms )
get start time for a systemcronflow class .