{ "info": { "author": "Jeff Dairiki", "author_email": "dairiki@dairiki.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Internet :: WWW/HTTP" ], "description": "#################################################\nHelpers for Dealing with ``datetime``\\s in Lektor\n#################################################\n\n************\nIntroduction\n************\n\nThis is a plugin for Lektor which provides some helpers for dealing with\ndates and times.\n\nCurrently this provides a ``dateordatetime`` model field type which\ncan contain either a ``date`` or a ``datetime``.\n\nAlso the following jinja filters are provided:\n\nisoformat(dt)\n Returns an iso formatted version the datetime, with timezone information.\n If ``dt`` is naive, it is localized to the site's default timezone.\n\nlocalize_datetime(dt)\n If ``dt`` is naive, it is localized to the site's default timezone.\n\n\n*********\nChangelog\n*********\n\nRelease 0.3 (2018-01-18)\n========================\n\nFix things so that date and datetime types returned by the ``dateordatetime`` Lektor type are comparable against ``None``. (``None`` compares less than all other dates and datetimes.)\n\n\nRelease 0.2 (2017-08-04)\n========================\n\nNew features\n------------\n\nMake lists of ``dateordatetime`` types sortable\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\nThe ``dateordatetime`` custom Lektor type now returns subclasses of ``datetime.date`` or ``datetime.datetime`` which can be compared against one another. Normally, attempts to compare a ``date`` against a ``datetime`` results in a ``TypeError`` being raised. This made it difficult to sort on ``dateordatetime`` values.\n\nNow ``date``\\s sort before any ``datetime``\\s with the same date. Na\u00efve ``datetime``\\s sort before timezone-aware ``datetime``\\s with the same date.\n\nRelease 0.1 (2017-04-19)\n========================\n\nInitial release.\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/dairiki/lektor-datetime-helpers", "keywords": "lektor,date,datetime", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "lektor-datetime-helpers", "package_url": "https://pypi.org/project/lektor-datetime-helpers/", "platform": "", "project_url": "https://pypi.org/project/lektor-datetime-helpers/", "project_urls": { "Homepage": "https://github.com/dairiki/lektor-datetime-helpers" }, "release_url": "https://pypi.org/project/lektor-datetime-helpers/0.3/", "requires_dist": [ "tzlocal", "lektor; extra == 'testing'", "pytest; extra == 'testing'", "pytest-cov; extra == 'testing'" ], "requires_python": "", "summary": "Lektor plugin to help with dates and times", "version": "0.3" }, "last_serial": 3501789, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "78e4f0c49c9fdf6fa24d4285635af7bd", "sha256": "8e53507804f507c57aa8b8e6423a08b93a623f44a984fefd50706543a3591afa" }, "downloads": -1, "filename": "lektor_datetime_helpers-0.1-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "78e4f0c49c9fdf6fa24d4285635af7bd", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3253, "upload_time": "2017-04-19T20:57:21", "url": "https://files.pythonhosted.org/packages/fd/21/289de50dbe0c1145f36be2d7d6676cfcd8beb8a60d8c4ad443276780dce0/lektor_datetime_helpers-0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2455b0109b2b7cd4374cbe4dfea4d59f", "sha256": "2c459cb7dc085cd94f480af92dcaa76aaf4575bc689e15a0040a6fb5742013b7" }, "downloads": -1, "filename": "lektor-datetime-helpers-0.1.tar.gz", "has_sig": true, "md5_digest": "2455b0109b2b7cd4374cbe4dfea4d59f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2598, "upload_time": "2017-04-19T20:57:23", "url": "https://files.pythonhosted.org/packages/cb/a7/3280c676346b75faa999d76b2045eed481febda451c108950313ad1adeea/lektor-datetime-helpers-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "1c6882de87f63aeff82a0dd3bfc0c027", "sha256": "09d6f86756618a8906004209247fe7c79f24dfcd27243b6168f77510d92d10a1" }, "downloads": -1, "filename": "lektor_datetime_helpers-0.2-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "1c6882de87f63aeff82a0dd3bfc0c027", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 4909, "upload_time": "2017-08-04T23:10:31", "url": "https://files.pythonhosted.org/packages/ea/bb/3e7e001f3538dd512e9ccff143de9eda244ada09486c909a6c36e6e7ca5a/lektor_datetime_helpers-0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "920bcf7f15b419422f9a28125659d6a0", "sha256": "091d80c58250081795f2c3d8e6de982ce268140882fa3b2473d4b7b9da01b862" }, "downloads": -1, "filename": "lektor-datetime-helpers-0.2.tar.gz", "has_sig": true, "md5_digest": "920bcf7f15b419422f9a28125659d6a0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3703, "upload_time": "2017-08-04T23:10:28", "url": "https://files.pythonhosted.org/packages/58/14/74e5e56453d16c7d20f68c5cd64da6fb32647f4db548089582b1a11d9937/lektor-datetime-helpers-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "708512d962dadcaf4a6818bce55e11c8", "sha256": "96140c30cd5c56508fa121575fd2629a0d9de26dbe8aed1d2e5b9ae74475489f" }, "downloads": -1, "filename": "lektor_datetime_helpers-0.3-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "708512d962dadcaf4a6818bce55e11c8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5430, "upload_time": "2018-01-18T18:31:57", "url": "https://files.pythonhosted.org/packages/ca/e2/5a6c77f0ab2daf97a2b66beff4ac98b429806f979cd75cf4014b74dbb5c3/lektor_datetime_helpers-0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "87e99e9b6cb9fa9f3f1e570e31d865ee", "sha256": "4da5a94df6c037f8bd36e2083072135959b319ca80ddcfed4ecbf72814c58323" }, "downloads": -1, "filename": "lektor-datetime-helpers-0.3.tar.gz", "has_sig": true, "md5_digest": "87e99e9b6cb9fa9f3f1e570e31d865ee", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5187, "upload_time": "2018-01-18T18:31:58", "url": "https://files.pythonhosted.org/packages/86/2f/a192f4fb870048d4cff7217065dc39a42a84d582e2789c4215b1c26fa0a2/lektor-datetime-helpers-0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "708512d962dadcaf4a6818bce55e11c8", "sha256": "96140c30cd5c56508fa121575fd2629a0d9de26dbe8aed1d2e5b9ae74475489f" }, "downloads": -1, "filename": "lektor_datetime_helpers-0.3-py2.py3-none-any.whl", "has_sig": true, "md5_digest": "708512d962dadcaf4a6818bce55e11c8", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5430, "upload_time": "2018-01-18T18:31:57", "url": "https://files.pythonhosted.org/packages/ca/e2/5a6c77f0ab2daf97a2b66beff4ac98b429806f979cd75cf4014b74dbb5c3/lektor_datetime_helpers-0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "87e99e9b6cb9fa9f3f1e570e31d865ee", "sha256": "4da5a94df6c037f8bd36e2083072135959b319ca80ddcfed4ecbf72814c58323" }, "downloads": -1, "filename": "lektor-datetime-helpers-0.3.tar.gz", "has_sig": true, "md5_digest": "87e99e9b6cb9fa9f3f1e570e31d865ee", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5187, "upload_time": "2018-01-18T18:31:58", "url": "https://files.pythonhosted.org/packages/86/2f/a192f4fb870048d4cff7217065dc39a42a84d582e2789c4215b1c26fa0a2/lektor-datetime-helpers-0.3.tar.gz" } ] }