{ "info": { "author": "Daniel Bishop", "author_email": "lolologist@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 1 - Planning", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Topic :: Scientific/Engineering :: Astronomy", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Utilities" ], "description": ".. balanced-time documentation master file, created by\n sphinx-quickstart on Fri Nov 16 18:55:43 2018.\n You can adapt this file completely to your liking, but it should at least\n contain the root `toctree` directive.\n\nbalancedtime\n=========================================\n|pypi_ver|\n\n.. |pypi_ver| image:: https://img.shields.io/pypi/v/balancedtime.svg\n :target: https://pypi.org/project/balancedtime/\n\nUsing balancedtime\n-------------------\nbalancedtime has two methods, one to get the current or specified time in a given location, and one to output a handy clock conversion for today in a given location.\n\nconvert_time_to_balanced_time(time=None, zipcode=10010, pretty_print=False)\nthe 'time' argument can be a datetime.datetime object.\n'zipcode' can be a contiguous US ZIP code\n\npretty_print will output a datetime.datetime object if False, and a text representation of the time (in a 12 hour format with AM/PM) if True.\n\n.. note::\n\n zipcode currently excludes leading 0 ZIPs (mostly in the Northeast.) and all ZIP codes not part of the contiguous United States. This is expected to be fixed in subsequent releases.\n\n\nExamples\n========\n\nThe following examples demonstrate the functionality available in the module\n\nconvert_time_to_balanced_time\n-----------------------------\n\n::\n\n >>> import balancedtime\n >>> balanced_time.convert_time_to_balanced_time(time=datetime.datetime(2018,5,3,6,30),zipcode=10010,pretty_print=True) #time in NYC on May 3, 2018, at 6:30 AM\n '06:32:06 AM'\n >>> balanced_time.convert_time_to_balanced_time(time=datetime.datetime(2018,5,3,6,30),zipcode=10010,pretty_print=False) #same, but return a datetime.datetime object\n datetime.datetime(2018, 5, 3, 6, 32, 6, 185567)\n\n\n\n\nclock_conversion\n----------------\n\n::\n\n >>> clock_conversion(zipcode=10010)\n\n balanced calendar for New York, NY, 2018/11/18\n old : balanced\n 12:00 AM = 12:15:50 AM\n 1:00 AM = 01:06:44 AM\n 2:00 AM = 01:57:38 AM\n 3:00 AM = 02:48:32 AM\n 4:00 AM = 03:39:26 AM\n 5:00 AM = 04:30:20 AM\n 6:00 AM = 05:21:14 AM\n 7:00 AM = 06:17:27 AM\n 8:00 AM = 07:30:36 AM\n 9:00 AM = 08:43:46 AM\n 10:00 AM = 09:56:55 AM\n 11:00 AM = 11:10:04 AM\n 12:00 PM = 12:23:14 PM\n 1:00 PM = 01:36:23 PM\n 2:00 PM = 02:49:32 PM\n 3:00 PM = 04:02:42 PM\n 4:00 PM = 05:15:51 PM\n 5:00 PM = 06:20:08 PM\n 6:00 PM = 07:10:55 PM\n 7:00 PM = 08:01:42 PM\n 8:00 PM = 08:52:29 PM\n 9:00 PM = 09:43:17 PM\n 10:00 PM = 10:34:04 PM\n 11:00 PM = 11:24:51 PM\n\nInstallation\n------------\n\nInstall balanced_time by running:\n\n pip install balancedtime\n\n\nContribute\n----------\n\n- Issue Tracker: https://github.com/Lolologist/balancedtime/issues\n- Source Code: https://github.com/Lolologist/balancedtime\n\nVersion History\n===============\n\n======== =======================================================================\nVersion Description\n======== =======================================================================\n0.1b First release\n======== =======================================================================\n\n\n\n", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Lolologist/balancedtime", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "balancedtime", "package_url": "https://pypi.org/project/balancedtime/", "platform": "", "project_url": "https://pypi.org/project/balancedtime/", "project_urls": { "Homepage": "https://github.com/Lolologist/balancedtime" }, "release_url": "https://pypi.org/project/balancedtime/0.16b0/", "requires_dist": [ "astral", "uszipcode" ], "requires_python": "", "summary": "Convert regular time into 12-hour days and nights", "version": "0.16b0" }, "last_serial": 5766126, "releases": { "0.16b0": [ { "comment_text": "", "digests": { "md5": "df300fbc7d5e55f500e98c690da00929", "sha256": "b9740603fa5db9f02c700c4db02537d99864d43b6ceb2675de709419c87cfadc" }, "downloads": -1, "filename": "balancedtime-0.16b0-py3-none-any.whl", "has_sig": false, "md5_digest": "df300fbc7d5e55f500e98c690da00929", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8493, "upload_time": "2019-09-01T05:09:31", "url": "https://files.pythonhosted.org/packages/67/aa/4cf578a92e0c41cace48559761960c1a73dbf6953e637537307c269cf5f9/balancedtime-0.16b0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "12efbc23ee43ee6b225dfc19518e8b73", "sha256": "776f301b8382c27d9d8423eca8d6717e5c26566c949f79e89623b9999a9560e1" }, "downloads": -1, "filename": "balancedtime-0.16b0.tar.gz", "has_sig": false, "md5_digest": "12efbc23ee43ee6b225dfc19518e8b73", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4343, "upload_time": "2019-09-01T05:09:33", "url": "https://files.pythonhosted.org/packages/d9/51/c496383167a0e49b8d63323969a5ad9f73e6ab1788bb67f91889b45383fb/balancedtime-0.16b0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "df300fbc7d5e55f500e98c690da00929", "sha256": "b9740603fa5db9f02c700c4db02537d99864d43b6ceb2675de709419c87cfadc" }, "downloads": -1, "filename": "balancedtime-0.16b0-py3-none-any.whl", "has_sig": false, "md5_digest": "df300fbc7d5e55f500e98c690da00929", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8493, "upload_time": "2019-09-01T05:09:31", "url": "https://files.pythonhosted.org/packages/67/aa/4cf578a92e0c41cace48559761960c1a73dbf6953e637537307c269cf5f9/balancedtime-0.16b0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "12efbc23ee43ee6b225dfc19518e8b73", "sha256": "776f301b8382c27d9d8423eca8d6717e5c26566c949f79e89623b9999a9560e1" }, "downloads": -1, "filename": "balancedtime-0.16b0.tar.gz", "has_sig": false, "md5_digest": "12efbc23ee43ee6b225dfc19518e8b73", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4343, "upload_time": "2019-09-01T05:09:33", "url": "https://files.pythonhosted.org/packages/d9/51/c496383167a0e49b8d63323969a5ad9f73e6ab1788bb67f91889b45383fb/balancedtime-0.16b0.tar.gz" } ] }