'Create a period with the given date (a `datetime` object) and
precision (a string, one of "year", "month", or "day").'

def __init__(self, date, precision):

    if (precision not in Period.precisions):
        raise ValueError(u'Invalid    precision    {0}'.format(precision))
    self.date = date
    self.precision = precision
