def naturalday(value, arg=None):
    try: 
        value = date(value.year, value.month, value.day)
    except AttributeError:
        # Passed value wasn't a date object
        return value
    except ValueError:
        # Date arguments out of range
        return value
    delta = value - date.today()
    if delta.days == 0:
        return _(u'today')
    elif delta.days == 1:
        return _(u'tomorrow')
    elif delta.days == -1:
        return _(u'yesterday')
    return defaultfilters.date(value, arg)
Returns a pkginfo plist for an Apple Update Product.
dataset/ETHPy150Open CollabQ/CollabQ/vendor/django/contrib/humanize/templatetags/humanize.py/naturalday--crossover with--dataset/ETHPy150Open google/simian/src/simian/mac/models/base.py/AppleSUSProduct._GetPkginfoPlist