def _parse_periods(pattern):
    parts = pattern.split('..', 1)
    if len(parts) == 1:
        instant = Period.parse(parts[0])
        return (instant, instant)
    else:
        start = Period.parse(parts[0])
        end = Period.parse(parts[1])
        return (start, end)
Displays the date, formatted according to the given string.
dataset/ETHPy150Open beetbox/beets/beets/dbcore/query.py/_parse_periods--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/_internal/django/template/defaulttags.py/now