reverts order of precisions from broadest to narrowest

This commit is contained in:
discopatrick 2017-04-20 13:20:22 +01:00
parent ab7cc8f1ab
commit 713c00aea7

View file

@ -533,8 +533,8 @@ class Period(object):
instants of time during January 2014.
"""
precisions = ('day', 'month', 'year')
date_formats = ('%Y-%m-%d', '%Y-%m', '%Y')
precisions = ('year', 'month', 'day')
date_formats = ('%Y', '%Y-%m', '%Y-%m-%d')
def __init__(self, date, precision):
"""Create a period with the given date (a `datetime` object) and