Metadata-Version: 1.0
Name: retaindate
Version: 1.0
Summary: Awfully simple module to check a date for obsoletion
Home-page: https://github.com/exhuma/braindump
Author: Michel Albert
Author-email: michel@albert.lu
License: BSD
Description: Description
        ===========
        
        Really simple module to decide wether a a date string is considered "obsolete"
        or not.
        
        Given a time-string like ``2010-01-01`` it will return ``True`` if this date
        should *not* be retained, or ``False`` if it should.
        
        Other time strings can be used by specifying a different format string (see
        strftime_ and strptime_ for the detailed syntax)
        
        Example Usage::
        
            from retaindate import is_obsolete
            from datetime import datetime, timedelta
        
            for i in range(10*365, -1, -1):
                date = datetime.today() - timedelta(i)
                if not is_obsolete(date):
                    print date
        
        See the module docs (or the source) for more details
        
        .. _strptime: http://docs.python.org/library/time.html#time.strptime
        .. _strftime: http://docs.python.org/library/time.html#time.strftime
        
Platform: UNKNOWN
