{ "info": { "author": "restran", "author_email": "grestran@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "########################################\r\nBeautifulTime\r\n########################################\r\n\r\n.. image:: https://travis-ci.org/restran/beautiful-time.svg?branch=master\r\n :target: https://travis-ci.org/restran/beautiful-time\r\n\r\n.. image:: https://coveralls.io/repos/github/restran/beautiful-time/badge.svg?branch=master\r\n :target: https://coveralls.io/github/restran/beautiful-time?branch=master\r\n\r\n\r\nBeautifulTime is a python package for converting date string, datetime, time and timestamp.\r\n\r\n===================\r\nInstall\r\n===================\r\n\r\n.. code-block:: bash\r\n\r\n pip install beautiful_time\r\n\r\n===================\r\nUsage\r\n===================\r\n\r\n.. code-block:: python\r\n\r\n import BeautifulTime\r\n\r\n date_str = '2016-10-30 12:30:30'\r\n dt = BeautifulTime.str2datetime(date_str)\r\n # with a custom format\r\n dt = BeautifulTime.str2datetime(date_str, format='%Y-%m-%d %H:%M:%S')\r\n t = BeautifulTime.str2time(date_str)\r\n ts = BeautifulTime.str2timestamp(date_str)\r\n\r\n dt = BeautifulTime.str2datetime(date_str)\r\n t = BeautifulTime.str2time(date_str)\r\n ts = BeautifulTime.str2timestamp(date_str)\r\n\r\n s = BeautifulTime.datetime2str(dt)\r\n t = BeautifulTime.datetime2time(dt)\r\n ts = BeautifulTime.datetime2timestamp(dt)\r\n\r\n s = BeautifulTime.time2str(t)\r\n dt = BeautifulTime.time2datetime(t)\r\n ts = BeautifulTime.time2timestamp(t)\r\n\r\n dt = BeautifulTime.timestamp2datetime(ts)\r\n t = BeautifulTime.timestamp2time(ts)\r\n s = BeautifulTime.timestamp2str(ts)\r\n\r\n", "description_content_type": null, "docs_url": null, "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/restran/beautiful-time", "keywords": "time,datetime,converter", "license": "MIT License", "maintainer": null, "maintainer_email": null, "name": "beautiful-time", "package_url": "https://pypi.org/project/beautiful-time/", "platform": "any", "project_url": "https://pypi.org/project/beautiful-time/", "project_urls": { "Homepage": "https://github.com/restran/beautiful-time" }, "release_url": "https://pypi.org/project/beautiful-time/0.2/", "requires_dist": null, "requires_python": null, "summary": "date string, datetime, time and timestamp converter", "version": "0.2" }, "last_serial": 2436878, "releases": { "0.1": [], "0.2": [ { "comment_text": "", "digests": { "md5": "6b8aa6e775f6c4006f40d05d605e3880", "sha256": "bf382d55fce3315529fe79c9c5c08c3f23befbbd8d734fc0e2fcd8b65e27ffa1" }, "downloads": -1, "filename": "beautiful-time-0.2.tar.gz", "has_sig": false, "md5_digest": "6b8aa6e775f6c4006f40d05d605e3880", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1955, "upload_time": "2016-11-02T06:26:34", "url": "https://files.pythonhosted.org/packages/20/cc/1c53dc148d19641fa38fe9497fe86def7ffdba2597ef09ab793a77ebf024/beautiful-time-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6b8aa6e775f6c4006f40d05d605e3880", "sha256": "bf382d55fce3315529fe79c9c5c08c3f23befbbd8d734fc0e2fcd8b65e27ffa1" }, "downloads": -1, "filename": "beautiful-time-0.2.tar.gz", "has_sig": false, "md5_digest": "6b8aa6e775f6c4006f40d05d605e3880", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1955, "upload_time": "2016-11-02T06:26:34", "url": "https://files.pythonhosted.org/packages/20/cc/1c53dc148d19641fa38fe9497fe86def7ffdba2597ef09ab793a77ebf024/beautiful-time-0.2.tar.gz" } ] }