{"id":13436757,"url":"https://github.com/andreypopp/react-time","last_synced_at":"2025-04-05T17:07:12.298Z","repository":{"id":9380459,"uuid":"11239541","full_name":"andreypopp/react-time","owner":"andreypopp","description":"Component for React to render relative and/or formatted dates into \u003ctime\u003e HTML5 element","archived":false,"fork":false,"pushed_at":"2017-11-08T20:13:21.000Z","size":58,"stargazers_count":211,"open_issues_count":4,"forks_count":23,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-29T16:07:58.004Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/andreypopp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-07-07T20:23:34.000Z","updated_at":"2023-09-08T16:40:31.000Z","dependencies_parsed_at":"2022-08-29T21:50:26.687Z","dependency_job_id":null,"html_url":"https://github.com/andreypopp/react-time","commit_stats":null,"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreypopp%2Freact-time","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreypopp%2Freact-time/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreypopp%2Freact-time/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/andreypopp%2Freact-time/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/andreypopp","download_url":"https://codeload.github.com/andreypopp/react-time/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247369952,"owners_count":20927928,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T03:00:51.896Z","updated_at":"2025-04-05T17:07:12.278Z","avatar_url":"https://github.com/andreypopp.png","language":"JavaScript","funding_links":[],"categories":["Uncategorized","Awesome React","UI Components","Demos","\u003csummary\u003eUI Components\u003c/summary\u003e"],"sub_categories":["Uncategorized","Tools","Time / Date / Age"],"readme":"React Time\n==========\n\nComponent for [React][] to render relative and/or formatted dates by using\n`\u003ctime\u003e` HTML5 element and preserving machine readable format in `datetime`\nattribute.\n\nInstallation\n------------\n\n    % npm install react-time\n\nUsage\n-----\n\n```jsx\nimport React from 'react'\nimport Time from 'react-time'\n\nclass MyComponent extends React.Component {\n\n  render() {\n    let now = new Date()\n    let wasDate = new Date(\"Thu Jul 18 2013 15:48:59 GMT+0400\")\n    return (\n      \u003cdiv\u003e\n        \u003cp\u003eToday is \u003cTime value={now} format=\"YYYY/MM/DD\" /\u003e\u003c/p\u003e\n        \u003cp\u003eThis was \u003cTime value={wasDate} titleFormat=\"YYYY/MM/DD HH:mm\" relative /\u003e\u003c/p\u003e\n      \u003c/div\u003e\n    )\n  }\n}\n```\n\n[React]: https://facebook.github.io/react/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreypopp%2Freact-time","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandreypopp%2Freact-time","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandreypopp%2Freact-time/lists"}