{ "info": { "author": "Samuel \"mansam\" Lucidi", "author_email": "mansam@csh.rit.edu", "bugtrack_url": null, "classifiers": [], "description": "hotdate |Build Status|\n======================\n\n``hotdate`` is a library for doing friendly date formating. Its API is\ninspired by `Moment.js `__.\n\n``hotdate`` wraps Python's builtin ``datetime`` object with a layer that\nsimplifies some common operations that are annoying to do with\n``datetime``. More importantly, ``hotdate`` provides functionality for\ndoing friendly/human-readable relative date formatting. It even has one\nof those crazy \"fluent interfaces\" that are so hip with the kids these\ndays.\n\nA quick tour\n------------\n\nConstruction\n~~~~~~~~~~~~\n\nYou can create hotdate objects in a bunch of ways.\n\n.. code:: python\n\n from hotdate import hotdate\n\n # get the current time and date\n >>> hotdate()\n hotdate(2014, 3, 4, 21, 34, 3, 661600)\n\n.. code:: python\n\n >>> hotdate(2011)\n hotdate(2011, 1, 1, 0, 0)\n\n.. code:: python\n\n >>> hotdate('2012 03', '%Y %m')\n hotdate(2012, 3, 1, 0, 0)\n\n.. code:: python\n\n >>> d = datetime.datetime.now()\n >>> hotdate(d)\n hotdate(2014, 3, 4, 21, 34, 3, 661600)\n\nFormatting\n~~~~~~~~~~\n\nYou can use it to format dates:\n\n.. code:: python\n\n\n >>> hotdate().format()\n '2014-03-04T21:46:18'\n\n.. code:: python\n\n \n >>> hotdate().format('%c')\n 'Tue Mar 4 21:47:03 2014'\n\n\"How long ago?\"\n~~~~~~~~~~~~~~~\n\n.. code:: python\n\n\n >>> hotdate().from_now()\n 'just now'\n\n.. code:: python\n\n >>> hotdate(2011).from_now()\n '2 years ago'\n\n.. code:: python\n\n >>> hotdate().add(minutes=30).from_now()\n '29 minutes from now'\n\nCalendar date formatting\n~~~~~~~~~~~~~~~~~~~~~~~~\n\n.. code:: python\n\n\n >>> hotdate().calendar()\n 'Today at 09:50PM'\n\n.. code:: python\n\n >>> hotdate().add(days=1).calendar()\n 'Tomorrow at 09:51PM'\n\n.. code:: python\n\n >>> hotdate().subtract(days=4).calendar()\n 'Last Friday at 09:51PM'\n\n.. code:: python\n\n >>> hotdate(2011).calendar()\n '1/1/2011'\n\nUse it just like a datetime\n~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n.. code:: python\n\n >>> hotdate().isoformat()\n '2014-03-05T17:00:28.699772'\n\n.. code:: python\n\n >>> hotdate.fromtimestamp(1311218002)\n hotdate(2011, 7, 20, 23, 13, 22)\n\n.. code:: python\n\n >>> hotdate().timetuple()\n time.struct_time(tm_year=2014, tm_mon=3, tm_mday=5, tm_hour=17, tm_min=10, tm_sec=35, tm_wday=2, tm_yday=64, tm_isdst=-1)\n\n.. |Build Status| image:: https://travis-ci.org/mansam/hotdate.png?branch=master\n :target: https://travis-ci.org/mansam/hotdate", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python.org/pypi/hotdate/", "keywords": null, "license": "LICENSE", "maintainer": null, "maintainer_email": null, "name": "hotdate", "package_url": "https://pypi.org/project/hotdate/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/hotdate/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python.org/pypi/hotdate/" }, "release_url": "https://pypi.org/project/hotdate/0.4.5/", "requires_dist": null, "requires_python": null, "summary": "Intuitive date formatting.", "version": "0.4.5" }, "last_serial": 1026695, "releases": { "0.2.1": [ { "comment_text": "", "digests": { "md5": "d68c9f159be7b196127fac2a0d2e9dfd", "sha256": "d76370eae95d71f56470a607e086b0b3ade34383f5a8adc74c741cb373a407ed" }, "downloads": -1, "filename": "hotdate-0.2.1.tar.gz", "has_sig": false, "md5_digest": "d68c9f159be7b196127fac2a0d2e9dfd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3403, "upload_time": "2014-03-05T02:15:00", "url": "https://files.pythonhosted.org/packages/b0/42/7fe9b4468df47e6392fea2fed9458e0ae0b97fabd34362be6d4775f4b4d6/hotdate-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "c0b45eb4e75845879636b37f1e893565", "sha256": "be4a260892d1482b767546012770092b3aa44de61d3bb3b18890ed77cf162033" }, "downloads": -1, "filename": "hotdate-0.2.2.tar.gz", "has_sig": false, "md5_digest": "c0b45eb4e75845879636b37f1e893565", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3396, "upload_time": "2014-03-05T02:21:27", "url": "https://files.pythonhosted.org/packages/1f/91/bc642cb5180e620c5272e9252db260cfc79a245572aa6cf0d72b69011463/hotdate-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "25c270c8ebccaf4b23549d718b6c85a1", "sha256": "a3dc5878844f21953349432d840db4f341cad34440aba0849b879c1bebd6f3d8" }, "downloads": -1, "filename": "hotdate-0.2.3.tar.gz", "has_sig": false, "md5_digest": "25c270c8ebccaf4b23549d718b6c85a1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4185, "upload_time": "2014-03-05T05:42:43", "url": "https://files.pythonhosted.org/packages/3a/c2/c9de1c8130ee302495522a57ed13858e9b4f12d67c52dcaab84bf2d659fe/hotdate-0.2.3.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "43946f0dd15672768ac4595d404838e3", "sha256": "066607018220621dc3a3701e4ff4e2adb7cfcfcf82dbbea960c961283fe08a4d" }, "downloads": -1, "filename": "hotdate-0.3.0.tar.gz", "has_sig": false, "md5_digest": "43946f0dd15672768ac4595d404838e3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4202, "upload_time": "2014-03-05T19:35:25", "url": "https://files.pythonhosted.org/packages/ef/8c/aa7122e6f9e9986455c7e85e24346d60997fdd80ad29fb5ae01355fa7ef6/hotdate-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "521b1986bc7a9b373a69b4e03517552a", "sha256": "741c2a9315032496d511425a775730fce9e37e3922a353cc1a2fc367e9721836" }, "downloads": -1, "filename": "hotdate-0.3.1.tar.gz", "has_sig": false, "md5_digest": "521b1986bc7a9b373a69b4e03517552a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4432, "upload_time": "2014-03-06T19:08:56", "url": "https://files.pythonhosted.org/packages/30/84/6d5248be6c2655a73f77d693129cc92cc5c2df3e497f026adae13fa80804/hotdate-0.3.1.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "cce7f9b7c850c2254486116fdce08b7d", "sha256": "6aef350496e6d1a9ca2c3ac3d0f05ab64431907a601e5cb73c4ccb19656cbbc0" }, "downloads": -1, "filename": "hotdate-0.4.0.tar.gz", "has_sig": false, "md5_digest": "cce7f9b7c850c2254486116fdce08b7d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4431, "upload_time": "2014-03-06T19:46:50", "url": "https://files.pythonhosted.org/packages/af/aa/5f13a6c2681c5206ca2bb165d55fc20510837e54b4ee861625a5a0720dd4/hotdate-0.4.0.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "fb56eba5b75b67a154d8bdc7d16e6758", "sha256": "e68e8695c5996ff67cf5ab153ff6e1bdd8de14922d3751fded7dd5ec0ceaafff" }, "downloads": -1, "filename": "hotdate-0.4.1.tar.gz", "has_sig": false, "md5_digest": "fb56eba5b75b67a154d8bdc7d16e6758", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4429, "upload_time": "2014-03-06T19:49:30", "url": "https://files.pythonhosted.org/packages/a7/d9/beb12d889a2b3d5cf44bd0a7cd0e61186d2567b7eb43d9a34d1833e50564/hotdate-0.4.1.tar.gz" } ], "0.4.2": [ { "comment_text": "", "digests": { "md5": "d898b717b763559fa31ea079d6d598a5", "sha256": "d7b479658f64e2e4f1a6b2dc1e273519dbbf5b2bf81d9c6dc959804cd8fd33b9" }, "downloads": -1, "filename": "hotdate-0.4.2.tar.gz", "has_sig": false, "md5_digest": "d898b717b763559fa31ea079d6d598a5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4871, "upload_time": "2014-03-06T20:53:12", "url": "https://files.pythonhosted.org/packages/ed/0f/529c4c2cfef2e42e3750ced6b30ca0727add68527cb4e7779b424af11ca2/hotdate-0.4.2.tar.gz" } ], "0.4.3": [ { "comment_text": "", "digests": { "md5": "6b8ec8410e4b2cf78496bef65ac94b2c", "sha256": "82ab3b030303d48e0d3579aab0e0a09b21b93864d02c49948077c299a89b0721" }, "downloads": -1, "filename": "hotdate-0.4.3.tar.gz", "has_sig": false, "md5_digest": "6b8ec8410e4b2cf78496bef65ac94b2c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4886, "upload_time": "2014-03-06T21:09:37", "url": "https://files.pythonhosted.org/packages/0c/b3/94068ad27f7048686f8579119956a942104d7672e01691cfd2f734b1448c/hotdate-0.4.3.tar.gz" } ], "0.4.4": [ { "comment_text": "", "digests": { "md5": "a5f2544fb32c4651a5d099a01d9afa0c", "sha256": "443d165c8f36f3449b796d166db41eb66ccbc37c165304535c9f76dd37d98ee9" }, "downloads": -1, "filename": "hotdate-0.4.4.tar.gz", "has_sig": false, "md5_digest": "a5f2544fb32c4651a5d099a01d9afa0c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4969, "upload_time": "2014-03-07T05:43:45", "url": "https://files.pythonhosted.org/packages/5d/0d/eabed7dee1561ae118ec5f38cccea6dd3ce37fb03f9dfbf6b607bf8c964b/hotdate-0.4.4.tar.gz" } ], "0.4.5": [ { "comment_text": "", "digests": { "md5": "965e5deb069f97a095e7bd166aeb5378", "sha256": "a9c0c5dc4b1bce73b04205e2e20e23ea61f08fefec3e3944eb97c677d33ce9ad" }, "downloads": -1, "filename": "hotdate-0.4.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "965e5deb069f97a095e7bd166aeb5378", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 6666, "upload_time": "2014-03-12T04:33:58", "url": "https://files.pythonhosted.org/packages/59/a3/dfe5d1e838208d71c4009306dbd704e05b29ca434901c7d13c6487d6cdc3/hotdate-0.4.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a1ee64076f5099a33a0e9278ac42276a", "sha256": "6205b429060dba316ce178732fb0e28c1166e15215f3c529a1c25465dacfebe3" }, "downloads": -1, "filename": "hotdate-0.4.5.tar.gz", "has_sig": false, "md5_digest": "a1ee64076f5099a33a0e9278ac42276a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4951, "upload_time": "2014-03-08T05:10:57", "url": "https://files.pythonhosted.org/packages/90/1a/bdf72fa58d5453d952b590a963ba18e178f2f66bd56e1abc046cc1d96ca6/hotdate-0.4.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "965e5deb069f97a095e7bd166aeb5378", "sha256": "a9c0c5dc4b1bce73b04205e2e20e23ea61f08fefec3e3944eb97c677d33ce9ad" }, "downloads": -1, "filename": "hotdate-0.4.5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "965e5deb069f97a095e7bd166aeb5378", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 6666, "upload_time": "2014-03-12T04:33:58", "url": "https://files.pythonhosted.org/packages/59/a3/dfe5d1e838208d71c4009306dbd704e05b29ca434901c7d13c6487d6cdc3/hotdate-0.4.5-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a1ee64076f5099a33a0e9278ac42276a", "sha256": "6205b429060dba316ce178732fb0e28c1166e15215f3c529a1c25465dacfebe3" }, "downloads": -1, "filename": "hotdate-0.4.5.tar.gz", "has_sig": false, "md5_digest": "a1ee64076f5099a33a0e9278ac42276a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4951, "upload_time": "2014-03-08T05:10:57", "url": "https://files.pythonhosted.org/packages/90/1a/bdf72fa58d5453d952b590a963ba18e178f2f66bd56e1abc046cc1d96ca6/hotdate-0.4.5.tar.gz" } ] }