def is_day_hour(date):
    try:
        date_format = '%Y-%m-%d/%H'
        is_valid = datetime.datetime.strptime(date, date_format).strftime(
            date_format) == date
    except __HOLE__:
        is_valid = False
    except ValueError:
        is_valid = False

    return is_valid
dataset/ETHPy150Open Dwolla/arbalest/arbalest/pipeline/__init__.py/is_day_hour