{ "info": { "author": "Michel Albert", "author_email": "michel@albert.lu", "bugtrack_url": null, "classifiers": [], "description": "Description\n===========\n\nReally simple module to decide wether a a date string is considered \"obsolete\"\nor not.\n\nGiven a time-string like ``2010-01-01`` it will return ``True`` if this date\nshould *not* be retained, or ``False`` if it should.\n\nOther time strings can be used by specifying a different format string (see\nstrftime_ and strptime_ for the detailed syntax)\n\nExample Usage::\n\n from retaindate import is_obsolete\n from datetime import datetime, timedelta\n\n for i in range(10*365, -1, -1):\n date = datetime.today() - timedelta(i)\n if not is_obsolete(date):\n print date\n\nSee the module docs (or the source) for more details\n\n.. _strptime: http://docs.python.org/library/time.html#time.strptime\n.. _strftime: http://docs.python.org/library/time.html#time.strftime", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/exhuma/braindump", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "retaindate", "package_url": "https://pypi.org/project/retaindate/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/retaindate/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/exhuma/braindump" }, "release_url": "https://pypi.org/project/retaindate/1.0/", "requires_dist": null, "requires_python": null, "summary": "Awfully simple module to check a date for obsoletion", "version": "1.0" }, "last_serial": 798921, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "b227719aee4265913583c21b79978fc6", "sha256": "95b263288e6fb0697d0b85b96a3d6cf09f27ca158d2ed5edbada20c8c0843584" }, "downloads": -1, "filename": "retaindate-1.0.tar.gz", "has_sig": false, "md5_digest": "b227719aee4265913583c21b79978fc6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1458, "upload_time": "2011-12-24T13:59:43", "url": "https://files.pythonhosted.org/packages/2d/dc/61859cf55e344eb70380ddc6e33ae83be68f6ca67ad278cabbc75c5d83df/retaindate-1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b227719aee4265913583c21b79978fc6", "sha256": "95b263288e6fb0697d0b85b96a3d6cf09f27ca158d2ed5edbada20c8c0843584" }, "downloads": -1, "filename": "retaindate-1.0.tar.gz", "has_sig": false, "md5_digest": "b227719aee4265913583c21b79978fc6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1458, "upload_time": "2011-12-24T13:59:43", "url": "https://files.pythonhosted.org/packages/2d/dc/61859cf55e344eb70380ddc6e33ae83be68f6ca67ad278cabbc75c5d83df/retaindate-1.0.tar.gz" } ] }