(at, basedate, units=adatetime.units)
return fix(adatetime(**args))
Returns a copy of ``at`` with any unspecified (None) units filled in
    with values from ``basedate``.
Returns a copy of ``at`` with any unspecified (None) units filled in
    with values from ``basedate``.
Returns a copy of at with any unspecified ( None ) units filled in with values from basedate .
def fill_in(at, basedate, units=adatetime.units):
    """Returns a copy of ``at`` with any unspecified (None) units filled in
    with values from ``basedate``.
    """

    if isinstance(at, datetime):
        return at

    args = {}
    for unit in units:
        v = getattr(at, unit)
        if v is None:
            v = getattr(basedate, unit)
        args[unit] = v
    return fix(adatetime(**args))
def fill_in ( at , basedate , units = adatetime . units ) : if isinstance ( at , datetime ) : return at args = { } for unit in units : v = getattr ( at , unit ) if v is None : v = getattr ( basedate , unit ) args [ unit ] = v return fix ( adatetime ( * * args ) )