{ "info": { "author": "Brent Tubbs", "author_email": "brent.tubbs@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "UTC\n===\n\nIt Should Be Easier\n~~~~~~~~~~~~~~~~~~~\n\nThe current Python landscape doesn't make it simple enough to use timezone\naware timestamps.\n\nIt'd be nice if datetime.datetime.now() gave you a timezone-aware datetime in\nyour current timezone, but it doesn't.\n\nYou'd expect datetime.datetime.utcnow() to at least be timezone-aware, right?\nNo. There's no tzinfo on the datetime you get back from that function.\n\nThe pytz_ package has comprehensive support for time zones, and if you need to\ndo something complicated, you should use that. But you don't always need to do\nsomething complicated. Sometimes you just want UTC.\n\nThis package provides syntactic sugar around simple UTC handling that I've\nrewritten in too many times in past projects.\n\nUsage\n~~~~~\n\nThere is a now() function that does the right thing::\n\n >>> import utc\n >>> utc.now()\n datetime.datetime(2013, 8, 30, 16, 51, 50, 316963, tzinfo=)\n\nAnd a datetime constructor that is UTC by default::\n\n >>> utc.datetime(1900, 1, 1, 13, 25)\n datetime.datetime(1900, 1, 1, 13, 25, tzinfo=)\n\nAnd a time constructor too::\n\n >>> utc.time(13, 26, 36)\n datetime.time(13, 26, 36, tzinfo=)\n\nThat is all.\n\n.. _pytz: https://pypi.python.org/pypi/pytz/", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://bits.btubbs.com/utc", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "utc", "package_url": "https://pypi.org/project/utc/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/utc/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://bits.btubbs.com/utc" }, "release_url": "https://pypi.org/project/utc/0.0.3/", "requires_dist": null, "requires_python": null, "summary": "A tiny library for working with UTC time.", "version": "0.0.3" }, "last_serial": 1412088, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "82a6c960d6acd6171b90565d4401c0c0", "sha256": "65ab9962037c38d13e5035433062b50416df083297e6a34258fb924a242020ee" }, "downloads": -1, "filename": "utc-0.0.1.tar.gz", "has_sig": false, "md5_digest": "82a6c960d6acd6171b90565d4401c0c0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1773, "upload_time": "2013-08-30T21:24:29", "url": "https://files.pythonhosted.org/packages/38/ed/a1b3c333f529f311314d11f9d4ed9054435983d9f8a96ee666eb3fcbfbe1/utc-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "c85fd5afc558502bc30ea918c3543089", "sha256": "397f1a87d2871d1e1a1879fdbac6d6f5bf7f89feeb0efca45e5ad40cf213a1d1" }, "downloads": -1, "filename": "utc-0.0.2.tar.gz", "has_sig": false, "md5_digest": "c85fd5afc558502bc30ea918c3543089", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1783, "upload_time": "2014-03-05T00:03:02", "url": "https://files.pythonhosted.org/packages/65/5c/c60115e03ba0b274f1c586bca38014e4cb21caca85ff81e3779525e58298/utc-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "d123da91e49e1f4cabd68830abb26e36", "sha256": "7b842c4bb063b3882443010019734bbd8810291b8d738f7aadfc9ae89b5a1b7e" }, "downloads": -1, "filename": "utc-0.0.3.tar.gz", "has_sig": false, "md5_digest": "d123da91e49e1f4cabd68830abb26e36", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1874, "upload_time": "2015-02-06T05:49:31", "url": "https://files.pythonhosted.org/packages/da/ce/694c9ec0f060611abaf13cfca477efbd5619d3cb5e6c6e4b58eafe1497d3/utc-0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d123da91e49e1f4cabd68830abb26e36", "sha256": "7b842c4bb063b3882443010019734bbd8810291b8d738f7aadfc9ae89b5a1b7e" }, "downloads": -1, "filename": "utc-0.0.3.tar.gz", "has_sig": false, "md5_digest": "d123da91e49e1f4cabd68830abb26e36", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1874, "upload_time": "2015-02-06T05:49:31", "url": "https://files.pythonhosted.org/packages/da/ce/694c9ec0f060611abaf13cfca477efbd5619d3cb5e6c6e4b58eafe1497d3/utc-0.0.3.tar.gz" } ] }