'Internal helper to assert the type of the provided timestamp value'

def _assert_is_datetime(self, timestamp):

    if (not timestamp):
        return False
    try:
        parse_datetime(timestamp)
    except ValueError:
        return False
    else:
        return True
