{ "info": { "author": "Simon Willison", "author_email": "", "bugtrack_url": null, "classifiers": [], "description": "# datasette-render-timestamps\n\n[![PyPI](https://img.shields.io/pypi/v/datasette-render-timestamps.svg)](https://pypi.org/project/datasette-render-timestamps/)\n[![CircleCI](https://circleci.com/gh/simonw/datasette-render-timestamps.svg?style=svg)](https://circleci.com/gh/simonw/datasette-render-timestamps)\n[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/simonw/datasette-render-timestamps/blob/master/LICENSE)\n\nDatasette plugin for rendering timestamps.\n\n## Installation\n\nInstall this plugin in the same environment as Datasette to enable this new functionality:\n\n pip install datasette-render-timestamps\n\nThe plugin will then look out for integer numbers that are likely to be timestamps (defaults to anything that would be a number of seconds from 5 years ago to 5 years in the future - this will be configurable eventually).\n\nThese will then be rendered in a more readable format.\n\n## Configuration\n\nThe default format is `%B %d, %Y - %H:%M:%S UTC` which renders for example: `October 10, 2019 - 07:18:29 UTC`. If you want another format, the date format can be customized using a [plugin configuration](https://datasette.readthedocs.io/en/stable/plugins.html#plugin-configuration) in a `metadata.json` file. Any format string supported by [strftime](http://strftime.org/) may be used. For example:\n\n\n```json\n{\n \"title\": \"Regular metadata keys can go here too\",\n \"plugins\": {\n \"datasette-render-timestamps\": {\n \"format\": \"%Y-%m-%d-%H:%M:%S\"\n }\n }\n}\n```\n\nRun datasette with the `-m` flag to load the metadata config:\n\n datasette serve mydata.db -m metadata.json\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/simonw/datasette-render-timestamps", "keywords": "", "license": "Apache License, Version 2.0", "maintainer": "", "maintainer_email": "", "name": "datasette-render-timestamps", "package_url": "https://pypi.org/project/datasette-render-timestamps/", "platform": "", "project_url": "https://pypi.org/project/datasette-render-timestamps/", "project_urls": { "Homepage": "https://github.com/simonw/datasette-render-timestamps" }, "release_url": "https://pypi.org/project/datasette-render-timestamps/0.2/", "requires_dist": [ "datasette", "pytest ; extra == 'test'" ], "requires_python": "", "summary": "Datasette plugin for rendering timestamps", "version": "0.2" }, "last_serial": 5971955, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "5c1d45e0cd3f591b2e1048071ae8abe5", "sha256": "789f18bb6b4790fd8fe03cfd340a285473532670600f2c4c2c0ba82b07a85b45" }, "downloads": -1, "filename": "datasette_render_timestamps-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "5c1d45e0cd3f591b2e1048071ae8abe5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 6588, "upload_time": "2019-10-10T22:55:26", "url": "https://files.pythonhosted.org/packages/f8/42/16c97765f9ee201aa03e38451cd373b31e32b174d00a632605f381af058b/datasette_render_timestamps-0.1-py3-none-any.whl" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "604e9b2348502514ddfec5488b597724", "sha256": "c31236451a56911a3e4e533178c966a56c80da7a727fc6aa081527d00840768e" }, "downloads": -1, "filename": "datasette_render_timestamps-0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "604e9b2348502514ddfec5488b597724", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7044, "upload_time": "2019-10-14T14:53:30", "url": "https://files.pythonhosted.org/packages/79/a6/c183428f7fb45834619061a8ee030e113cefbd98424f9aa29810e4219158/datasette_render_timestamps-0.2-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "604e9b2348502514ddfec5488b597724", "sha256": "c31236451a56911a3e4e533178c966a56c80da7a727fc6aa081527d00840768e" }, "downloads": -1, "filename": "datasette_render_timestamps-0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "604e9b2348502514ddfec5488b597724", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7044, "upload_time": "2019-10-14T14:53:30", "url": "https://files.pythonhosted.org/packages/79/a6/c183428f7fb45834619061a8ee030e113cefbd98424f9aa29810e4219158/datasette_render_timestamps-0.2-py3-none-any.whl" } ] }