{ "info": { "author": "Franco Pellegrini", "author_email": "frapell@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Framework :: Plone", "Framework :: Plone :: 4.0", "Framework :: Plone :: 4.1", "Framework :: Plone :: 4.2", "Framework :: Plone :: 4.3", "Framework :: Plone :: 5.0", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v2 (GPLv2)", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Topic :: Office/Business :: News/Diary", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "*********************\ncollective.prettydate\n*********************\n\n.. contents:: Table of Contents\n\nLife, the Universe, and Everything\n----------------------------------\n\ncollective.prettydate is a package that helps developers to solve some\nusability issues associated with the utilization of absolute date formating on\nsites used among different timezones.\n\nWhen a date is printed as \"01/02/2012\" it could represent \"February 1\" or\n\"January 2\", depending on the format used. Also, if the site is located on a\ndifferent timezone, it could take you to situations when today's date is\nprinted as yesterday, or tomorrow's date.\n\ncollective.prettydate represents a date on a relative format so it would be\ndisplayed as \"4 hours ago\", \"yesterday\" or \"last week\", which is easier to\nread and understand for most people.\n\nThis feature is really nice for news sites or sites with upcoming events.\n\nMostly Harmless\n---------------\n\n.. image:: https://secure.travis-ci.org/collective/collective.prettydate.png?branch=master\n :target: http://travis-ci.org/collective/collective.prettydate\n :alt: Travis CI badge\n\n.. image:: https://coveralls.io/repos/collective/collective.prettydate/badge.png?branch=master\n :target: https://coveralls.io/r/collective/collective.prettydate\n :alt: Coveralls badge\n\n.. image:: https://pypip.in/d/collective.prettydate/badge.png\n :target: https://pypi.python.org/pypi/collective.prettydate/\n :alt: Downloads\n\nGot an idea? Found a bug? Let us know by `opening a support ticket`_.\n\n.. _`opening a support ticket`: https://github.com/collective/collective.prettydate/issues\n\nDon't Panic\n-----------\n\nThis product provides a utility which will convert a DateTime object into a\nhuman readable text.\n\n::\n\n from zope.component import getUtility\n from collective.prettydate.interfaces import IPrettyDate\n date_utility = getUtility(IPrettyDate)\n\nAt this point, you can use the 'date' method to convert the DateTime object::\n\n from DateTime import DateTime\n today = DateTime()\n str_date = date_utility.date(today)\n\nIn previous example, 'str_date' will be \"now\"\n\nThe 'date' method also allows 2 additional parameters: 'short' and 'asdays'\nwhich will modify the output to be in short format ('h' instead of 'hours',\n'd' instead of 'days', etc) and whole days (it will use 'today' instead of any\namount of seconds, minutes or hours for current day). They both default to\n\"False\".\n\nTimezones\n^^^^^^^^^\n\nIf your server timezone is configured correctly, and the DateTime object\ncontains valid timezone info, then the text output will reflect the correct\ntime. You do not need to convert date and time between different timezones.\n\nOutput examples\n^^^^^^^^^^^^^^^\n\n* '4 hours ago'\n* '4h ago' (short format)\n* 'in 28 minutes'\n* 'in 6 months'\n* 'today'\n* 'last week'\n* 'yesterday'\n* 'last year'\n\nDateTime 3.0\n^^^^^^^^^^^^\n\ncollective.prettydate is fully compatible with `DateTime 3.0`_ which provides\na significantly smaller memory footprint.\n\n.. _`DateTime 3.0`: http://pypi.python.org/pypi/DateTime\n\nInstallation\n------------\n\nTo enable this product in a buildout-based installation:\n\n1. Edit your buildout.cfg and add ``collective.prettydate`` to the list of\n eggs to install ::\n\n [buildout]\n ...\n eggs =\n collective.prettydate\n\nAfter updating the configuration you need to run ''bin/buildout'', which will\ntake care of updating your system.\n\n\nShare and Enjoy\n---------------\n\n``collective.prettydate`` would not have been possible without the\ncontribution of the following people:\n\n- Franco Pellegrini\n- H\u00e9ctor Velarde\n- Juan A. D\u00edaz\n\nYou can find an updated list of package contributors on `GitHub`_.\n\nThis package is based on `py-pretty`_.\n\nDevelopment sponsored by Open Multimedia.\n\n.. _`py-pretty`: http://pypi.python.org/pypi/py-pretty\n.. _`GitHub`: https://github.com/collective/collective.prettydate/contributors\n\nChangelog\n---------\n\nBecause you have to know where your towel is.\n\n1.2.2 (2014-11-12)\n^^^^^^^^^^^^^^^^^^\n\n- Fixed German translation. [mbaechtold]\n\n\n1.2.1 (2014-09-01)\n^^^^^^^^^^^^^^^^^^\n\n- Add German translations. [jone]\n\n- Fix package dependencies. [hvelarde]\n\n\n1.2 (2013-03-19)\n^^^^^^^^^^^^^^^^\n\n- Added Finnish translation. [petri]\n\n- Added Italian translation. [gborelli]\n\n- Tested compatibility with Plone 4.3. [hvelarde]\n\n- Updated documentation. [hvelarde]\n\n- Tested compatibility with Plone 4.0. [hvelarde]\n\n\n1.1 (2012-05-29)\n^^^^^^^^^^^^^^^^\n\n- Removed unused test module. [hvelarde]\n\n- Remove unnecessary generic setup profile. [nueces]\n\n- Package no longer depends on five.grok (fixes #3). [frapell]\n\n\n1.0 (2012-05-04)\n^^^^^^^^^^^^^^^^\n\n- Tested compatibility with Plone 4.2. [hvelarde]\n\n- Tested compatibility with DateTime 3.0 which provides a significantly\n smaller memory footprint. [hvelarde]\n\n\n1.0rc1 (2012-02-21)\n^^^^^^^^^^^^^^^^^^^\n\n- Initial release.", "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/collective/collective.prettydate", "keywords": "plone prettydate datetime", "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "collective.prettydate", "package_url": "https://pypi.org/project/collective.prettydate/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/collective.prettydate/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/collective/collective.prettydate" }, "release_url": "https://pypi.org/project/collective.prettydate/1.2.2/", "requires_dist": null, "requires_python": null, "summary": "Represents a date on a relative format so, instead of '01/02/2012', it would be displayed as '4 hours ago', 'yesterday' or 'last week', which is easier to read and understand for most people.", "version": "1.2.2" }, "last_serial": 1304377, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "204d57306138154507b8d1b6eeaad508", "sha256": "71c08eb798e8b177939999beb19ece3129c399d513e9e44387e7f2cf91362e12" }, "downloads": -1, "filename": "collective.prettydate-1.0.tar.gz", "has_sig": false, "md5_digest": "204d57306138154507b8d1b6eeaad508", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23539, "upload_time": "2012-05-04T16:33:37", "url": "https://files.pythonhosted.org/packages/12/1f/b2a59510df7682c20182253e53fb04e19abe94bb31f6862ce649b0181704/collective.prettydate-1.0.tar.gz" } ], "1.0rc1": [ { "comment_text": "", "digests": { "md5": "1b602979e9919a667cb3d9386dd17977", "sha256": "1ad63790742ab186a2e4568cb7a40053b9d760c66f485183265d794c258f0735" }, "downloads": -1, "filename": "collective.prettydate-1.0rc1.tar.gz", "has_sig": false, "md5_digest": "1b602979e9919a667cb3d9386dd17977", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 45282, "upload_time": "2012-02-21T14:52:20", "url": "https://files.pythonhosted.org/packages/07/96/3095b4d315d4e221ee8701a4c0932c5b8a41e8949b2b879ada3009fbed4f/collective.prettydate-1.0rc1.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "963ba998dd81fed3ef6b2c753faf0405", "sha256": "53637f3cd29acb4b20660bcdd145e543e94f2f848b7139516491bc21e40965c8" }, "downloads": -1, "filename": "collective.prettydate-1.1.zip", "has_sig": false, "md5_digest": "963ba998dd81fed3ef6b2c753faf0405", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 30546, "upload_time": "2012-05-29T22:52:38", "url": "https://files.pythonhosted.org/packages/37/95/4fd1eb2ab39cfbaae6e28e6d594fd24e367a55730b75cc8d518a4dcbdd74/collective.prettydate-1.1.zip" } ], "1.2": [ { "comment_text": "", "digests": { "md5": "09c98dc7001704abde2aad6ea193fea3", "sha256": "066825a23f4ae9cf75e409202d1d80d722914f9e7ea84dd66db742a6bf6d3dbe" }, "downloads": -1, "filename": "collective.prettydate-1.2.zip", "has_sig": false, "md5_digest": "09c98dc7001704abde2aad6ea193fea3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 38397, "upload_time": "2013-03-19T19:14:41", "url": "https://files.pythonhosted.org/packages/d4/82/ffad5b080e744e39c3b029ca1ffd355fe113deb6c4d5364ed17dd6b1cd1e/collective.prettydate-1.2.zip" } ], "1.2.1": [ { "comment_text": "", "digests": { "md5": "82c88629a4f6e463edf8a7841ac8e789", "sha256": "40f756a8771090d97a5a5c3abbf11ccf17d76c8f9a2e79fe5c072206ce4ef741" }, "downloads": -1, "filename": "collective.prettydate-1.2.1.zip", "has_sig": false, "md5_digest": "82c88629a4f6e463edf8a7841ac8e789", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 56054, "upload_time": "2014-09-01T19:33:17", "url": "https://files.pythonhosted.org/packages/e9/42/74f30b60ccb3843f60fccfc72920356816295288a224fbda560e16f36a3a/collective.prettydate-1.2.1.zip" } ], "1.2.2": [ { "comment_text": "", "digests": { "md5": "170533168233a7f9933265124c54d4d8", "sha256": "c2750eb0ab76cb5b8e0f14c41438547b2128f909078840a33ef3960ccd8d0d89" }, "downloads": -1, "filename": "collective.prettydate-1.2.2.zip", "has_sig": false, "md5_digest": "170533168233a7f9933265124c54d4d8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 46301, "upload_time": "2014-11-12T18:28:17", "url": "https://files.pythonhosted.org/packages/c3/44/9ef688104b7330c324a1ff56ba275c546c63198d723347c89fb891ed9856/collective.prettydate-1.2.2.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "170533168233a7f9933265124c54d4d8", "sha256": "c2750eb0ab76cb5b8e0f14c41438547b2128f909078840a33ef3960ccd8d0d89" }, "downloads": -1, "filename": "collective.prettydate-1.2.2.zip", "has_sig": false, "md5_digest": "170533168233a7f9933265124c54d4d8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 46301, "upload_time": "2014-11-12T18:28:17", "url": "https://files.pythonhosted.org/packages/c3/44/9ef688104b7330c324a1ff56ba275c546c63198d723347c89fb891ed9856/collective.prettydate-1.2.2.zip" } ] }