Exemple #1
0
def between(start: datetime, end: datetime, tags: List[str]=[]) -> Iterable[Tuple[datetime, str]]:
    """Generate events from 'start' to 'end' (non-inclusive)
    """
    for day in date_span(start, end):
        for item in tag_filter(day_events(day), tags):
            yield day, item
Exemple #2
0
def on(day: datetime, tags: List[str]=[]) -> Iterable[Tuple[datetime, str]]:
    """Generate events for 'day', optionally filtered by tags."""
    return tag_filter(day_events(day), tags)