def datetime_to_int(date_object):
    """
    Convert a datetime object to an integer value.
    :param date_object: a datetime object
    :return: an integer value
    """
    return int(date_object.strftime('%s'))
