

def datetime(obj, utc=False):
    if (obj is None):
        return None
    elif isinstance(utc, builtin_datetime.date):
        return obj
    elif isinstance(obj, basestring):
        return parse(obj, utc=utc)
    else:
        raise ValueError('Can only convert strings into dates, received {}'.format(obj.__class__))

dataset/ETHPy150Open debrouwere/facebook-insights/facebookinsights/utils/date.py datetime/VarMisuse@30/32 `obj`->`utc`