def format_atom(self,reduction = None): if not reduction: reduction = pparser.parseone("MiLeEa") out = [] ts = self._format_termweeks(reduction) if ts: out.append(ts) # days and times dts = self._format_daytimes(reduction) if dts: out.append(dts) return " ".join(out)
def format_atom(self, reduction=None): if not reduction: reduction = pparser.parseone("MiLeEa") out = [] ts = self._format_termweeks(reduction) if ts: out.append(ts) # days and times dts = self._format_daytimes(reduction) if dts: out.append(dts) return " ".join(out)
def __init__(self, template, term=None): self.term = term if template is not None: self.template = pparser.parseone(str(template)) self._tracker = tracker.OffsetTracker(self.template, term) self._patterns = []
def __init__(self,template,term = None): self.term = term if template is not None: self.template = pparser.parseone(str(template)) self._tracker = tracker.OffsetTracker(self.template,term) self._patterns = []