def METHOD_NAME(year, microseconds=False):
    """Helper generator
    """
    date = datetime.datetime(year, 1, 1, 0, 0, 0)
    if microseconds:
        date = datetime.datetime(year, 1, 1, 0, 0, 0, 123000)
    while not (date.month == 12 and date.day == 31):
        yield date
        date = date + datetime.timedelta(days=1, hours=1, minutes=1, seconds=1)