def GrocTimeSpecification(schedule, timezone=None):
 parser = groc.CreateParser(schedule)
 parser.timespec()
 if parser.period_string:
  return IntervalTimeSpecification(parser.interval_mins, parser.period_string, parser.synchronized, parser.start_time_string, parser.end_time_string, timezone)
 else:
  return SpecificTimeSpecification(parser.ordinal_set, parser.weekday_set, parser.month_set, parser.monthday_set, parser.time_string, timezone)

def GrocTimeSpecification ( schedule , timezone = None ) : parser = groc . CreateParser ( schedule ) parser . timespec ( ) if parser . period_string : return IntervalTimeSpecification ( parser . interval_mins , parser . period_string , parser . synchronized , parser . start_time_string , parser . end_time_string , timezone ) else : return SpecificTimeSpecification ( parser . ordinal_set , parser . weekday_set , parser . month_set , parser . monthday_set , parser . time_string , timezone )
factory function .