django_any/xunit.py
def any_date(from_date=date(1990, 1, 1), to_date=date.today()):
    """
    Return random date from the [from_date, to_date] interval

    >>> result = any_date(from_date=date(1990,1,1), to_date=date(1990,1,3))
    >>> type(result)
    <type 'datetime.date'>
    >>> result >= date(1990,1,1) and result <= date(1990,1,3)
    True
    """
    days = any_int(min_value=0, max_value=(to_date - from_date).days)

    return from_date + timedelta(days=days)
def any_date(from_date=date(1990, 1, 1), to_date=date.today()):
    """
    Return random date from the [from_date, to_date] interval

    >>> result = any_date(from_date=date(1990,1,1), to_date=date(1990,1,3))
    >>> type(result)
    <type 'datetime.date'>
    >>> result >= date(1990,1,1) and result <= date(1990,1,3)
    True
    """
    days = any_int(min_value=0, max_value=(to_date - from_date).days)

    return from_date + timedelta(days=days)
def any_date ( from_date = date ( 1990 , 1 , 1 ) , to_date = date . today ( ) ) : days = any_int ( min_value = 0 , max_value = ( to_date - from_date ) . days ) return from_date + timedelta ( days = days )
Return random date from the [from_date, to_date] interval

    >>> result = any_date(from_date=date(1990,1,1), to_date=date(1990,1,3))
    >>> type(result)
    <type 'datetime.date'>
    >>> result >= date(1990,1,1) and result <= date(1990,1,3)
    True
Return random date from the [ from_date to_date ] interval >>> result = any_date ( from_date = date ( 1990 1 1 ) to_date = date ( 1990 1 3 )) >>> type ( result ) <type datetime . date > >>> result > = date ( 1990 1 1 ) and result < = date ( 1990 1 3 ) True