{ "info": { "author": "Shraddha Kishan", "author_email": "shraddha.kishan@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.7" ], "description": "# randomtimestamp\nRandom timestamp generator\n\n## Usage\nrandomtimestamp can be used from the command line or imported as a python package.\n\n### Command line usage\nTo use the script from command line\n```\n $randomtimestamp\n 30-08-1995 17:58:14\n```\n\n### Python Package Usage\n\nThe function **randomtimestamp** takes two optional arguments:\n```\nrandomtimestamp(start_year=1950,text=True)\n```\nThe default values of **start_year** and **text** are *1950* and *True* respectively.\nThe timestamp is generated between *1950* and current year (*datetime.now().year*). Although a year before 1950 could have been used, but it didn't seem to be necessary.\n\nBy default, the function returns the output as string in format (**DD-MM-YYYY HH:MM:SS**), where **HH** is in 24-hour format. Setting **text=False** returns a *datetime* object.\n\nHere are examples of all the possible syntaxes:\n```\n >>>from randomtimestamp import randomtimestamp\n\n >>>randomtimestamp()\n '02-06-1970 23:34:10'\n\n >>>randomtimestamp(2010)\n '02-06-2013 23:34:10' \n\n >>>randomtimestamp(start_year=2005)\n '10-04-2015 10:55:02' \n\n >>>randomtimestamp(2010,False)\n datetime.datetime(2010, 5, 16, 3, 32, 18)\n\n >>>randomtimestamp(text=False)\n datetime.datetime(1951, 2, 13, 18, 19, 1)\n```\n\n## License\nThis project is released under [GNU GENERAL PUBLIC LICENSE V3](https://www.gnu.org/licenses/gpl-3.0.en.html).\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/ByteBaker/randomtimestamp", "keywords": "", "license": "GPL v3.0", "maintainer": "", "maintainer_email": "", "name": "randomtimestamp", "package_url": "https://pypi.org/project/randomtimestamp/", "platform": "", "project_url": "https://pypi.org/project/randomtimestamp/", "project_urls": { "Homepage": "https://github.com/ByteBaker/randomtimestamp" }, "release_url": "https://pypi.org/project/randomtimestamp/1.0.0/", "requires_dist": null, "requires_python": "", "summary": "Generate random time stamps", "version": "1.0.0" }, "last_serial": 4756889, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "0eacd9e1a0404ede5915111568847dd4", "sha256": "ee41c62ccab7ddfdabc7bdb8d4597b90b65e5d1d0689192aac511f571c7eeb5c" }, "downloads": -1, "filename": "randomtimestamp-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "0eacd9e1a0404ede5915111568847dd4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 15756, "upload_time": "2019-01-29T21:53:52", "url": "https://files.pythonhosted.org/packages/ae/8f/ac1c8e1ea0e15fe8e77654b9bec938d1bdf50bf9543975eec577af09adb5/randomtimestamp-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4fbc316d34da1a87cacaf30eca57857b", "sha256": "5bcd08c790b777419b382e788e99d3753c3ee58df3ec979b5726aa7c7af7cd99" }, "downloads": -1, "filename": "randomtimestamp-1.0.0.tar.gz", "has_sig": false, "md5_digest": "4fbc316d34da1a87cacaf30eca57857b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2698, "upload_time": "2019-01-29T21:53:55", "url": "https://files.pythonhosted.org/packages/08/19/8e72289ef87daa333c796e2ac4d5c08845f10e5cfa6dacd3a476efa6ab8f/randomtimestamp-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0eacd9e1a0404ede5915111568847dd4", "sha256": "ee41c62ccab7ddfdabc7bdb8d4597b90b65e5d1d0689192aac511f571c7eeb5c" }, "downloads": -1, "filename": "randomtimestamp-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "0eacd9e1a0404ede5915111568847dd4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 15756, "upload_time": "2019-01-29T21:53:52", "url": "https://files.pythonhosted.org/packages/ae/8f/ac1c8e1ea0e15fe8e77654b9bec938d1bdf50bf9543975eec577af09adb5/randomtimestamp-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4fbc316d34da1a87cacaf30eca57857b", "sha256": "5bcd08c790b777419b382e788e99d3753c3ee58df3ec979b5726aa7c7af7cd99" }, "downloads": -1, "filename": "randomtimestamp-1.0.0.tar.gz", "has_sig": false, "md5_digest": "4fbc316d34da1a87cacaf30eca57857b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2698, "upload_time": "2019-01-29T21:53:55", "url": "https://files.pythonhosted.org/packages/08/19/8e72289ef87daa333c796e2ac4d5c08845f10e5cfa6dacd3a476efa6ab8f/randomtimestamp-1.0.0.tar.gz" } ] }