{"id":32235326,"url":"https://github.com/mikepenzin/timeago-simple","last_synced_at":"2026-02-21T03:33:25.011Z","repository":{"id":58246156,"uuid":"85732032","full_name":"mikepenzin/timeago-simple","owner":"mikepenzin","description":"timeago makes it easy to support automatically updating fuzzy timestamps (e.g. \"4 minutes ago\" or \"1 day ago\")","archived":false,"fork":false,"pushed_at":"2018-09-18T08:27:09.000Z","size":54,"stargazers_count":4,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-14T08:41:28.196Z","etag":null,"topics":["bower","date","nodejs-modules","nodejs-plugin","npm-module","npm-package","npm-scripts","parser","timeago","vanilla-javascript","vanilla-js"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mikepenzin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-21T17:18:47.000Z","updated_at":"2022-07-17T17:15:38.000Z","dependencies_parsed_at":"2022-08-31T04:40:14.700Z","dependency_job_id":null,"html_url":"https://github.com/mikepenzin/timeago-simple","commit_stats":null,"previous_names":["mikepenzin/timeago"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mikepenzin/timeago-simple","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikepenzin%2Ftimeago-simple","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikepenzin%2Ftimeago-simple/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikepenzin%2Ftimeago-simple/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikepenzin%2Ftimeago-simple/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikepenzin","download_url":"https://codeload.github.com/mikepenzin/timeago-simple/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikepenzin%2Ftimeago-simple/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29672704,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T03:11:15.450Z","status":"ssl_error","status_checked_at":"2026-02-21T03:10:34.920Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["bower","date","nodejs-modules","nodejs-plugin","npm-module","npm-package","npm-scripts","parser","timeago","vanilla-javascript","vanilla-js"],"created_at":"2025-10-22T13:00:20.863Z","updated_at":"2026-02-21T03:33:25.002Z","avatar_url":"https://github.com/mikepenzin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# timeago-simple \n[![npm](https://img.shields.io/npm/v/timeago-simple.svg?style=flat-square)]() [![npm](https://img.shields.io/npm/dt/timeago-simple.svg?style=flat-square)]() [![npm](https://img.shields.io/npm/l/timeago-simple.svg?style=flat-square)]() [![Travis](https://img.shields.io/travis/mikepenzin/timeago-simple.svg?style=flat-square)]() [![Coveralls](https://img.shields.io/coveralls/mikepenzin/timeago-simple.svg?style=flat-square)]()\n\nTimeago is a simple plugin that makes it easy to support automatically updating fuzzy timestamps (e.g. \"4 minutes ago\" or \"1 day ago\")\n\n[![NPM](https://nodei.co/npm/timeago-simple.png?downloads=true)](https://nodei.co/npm/timeago-simple/) \n\n## NodeJS Plugin\nInstall:\n\n```js\nnpm install timeago-simple --save\n```\n\nUsage:\n\n```js\nvar timeago = require(\"timeago-simple\");\n\n\nvar timeStamp = 'Tue Mar 21 2017 15:08:46 GMT+0000 (UTC)';\n\nvar newTime = timeago.simple(timeStamp);\n\n// 9 hours ago\n\n\nvar futureTimeStamp = 'Tue Mar 21 2019 15:08:46 GMT+0000 (UTC)';\n\nvar newFutureTime = timeago.simple(futureTimeStamp);\n\n// in 2 years\n\n```\n\n## Bower (plain JavaScript)\n\nAdd via Bower:\n```js\nbower install timeago-simple --save\n```\n\nAdd via CDN:\n```html\n\u003c!--Full version--\u003e\n\u003cscript type=\"text/javascript\" src=\"https://cdn.jsdelivr.net/npm/timeago-simple@1.2.4/dist/timeago.js\" async\u003e\u003c/script\u003e\n\n\u003c!--Minified version--\u003e\n\u003cscript type=\"text/javascript\" src=\"https://cdn.jsdelivr.net/npm/timeago-simple@1.2.4/dist/timeago.min.js\" async\u003e\u003c/script\u003e\n\n```\n#### Directory for legasy versions\nhttps://cdn.jsdelivr.net/npm/timeago-simple@1.2.2/\n\n\n#### Usage:\n```html\n\u003cp\u003ePosted: \u003cspan class=\"timeago\"\u003eTue Mar 21 2017 15:08:46 GMT+0000 (UTC)\u003c/span\u003e\u003c/p\u003e\n\n\u003cp\u003ePosted: \u003cspan class=\"timeago\"\u003eTue Apr 2 2017\u003c/span\u003e\u003c/p\u003e\n\n\u003cp\u003ePosted: \u003cspan class=\"timeago\"\u003e12/31/2004\u003c/span\u003e\u003c/p\u003e\n\n\u003cp\u003ePosted: \u003cspan class=\"timeago\"\u003e2017/03/31\u003c/span\u003e\u003c/p\u003e\n\n\u003cscript type=\"text/javascript\" src=\"/dist/timeago.min.js\" async\u003e\u003c/script\u003e\n\n\u003c!-- Output:\nPosted: 12 days ago\n\nPosted: 16 hours ago\n\nPosted: 13 years ago\n\nPosted: 8 days ago\n--\u003e\n\n\n\u003cp\u003eWill be ready \u003cspan class=\"timeago\"\u003eTue Mar 21 2020 15:08:46 GMT+0000 (UTC)\u003c/span\u003e\u003c/p\u003e\n\n\u003cp\u003eWill be ready \u003cspan class=\"timeago\"\u003e06/31/2017\u003c/span\u003e\u003c/p\u003e\n\n\u003cscript type=\"text/javascript\" src=\"/dist/timeago.min.js\" async\u003e\u003c/script\u003e\n\n\u003c!-- Output:\n\nWill be ready in 3 years\n\nWill be ready in 2 month\n\n--\u003e\n\n```\n\n#### Troubleshooting:\n\nIf we unable to parse the date and time error message will throw in console and original data will display\n\n```html\n\u003cp\u003ePosted: \u003cspan class=\"timeago\"\u003e31/12/2004\u003c/span\u003e\u003c/p\u003e\n\n\u003cp\u003ePosted: \u003cspan class=\"timeago\"\u003e4366325635463456\u003c/span\u003e\u003c/p\u003e\n\n\u003cp\u003ePosted: \u003cspan class=\"timeago\"\u003ezcbdsdewea\u003c/span\u003e\u003c/p\u003e\n\n\u003cscript type=\"text/javascript\" src=\"/dist/timeago.min.js\" async\u003e\u003c/script\u003e\n\n\u003c!-- Output:\n\nPosted: 31/12/2004\n\nPosted: 4366325635463456\n\nPosted: zcbdsdewea\n\n--\u003e\n\n\u003c!-- Console Output:\n\ntimeago-simple: Please check date and time format! Unable to parse the date \u0026 time: 31/12/2004\n\ntimeago-simple: Please check date and time format! Unable to parse the date \u0026 time: 4366325635463456\n\ntimeago-simple: Please check date and time format! Unable to parse the date \u0026 time: zcbdsdewea\n\n--\u003e\n\n```\n\n## Tests\n\n  `npm run cover`\n  \n  \n## Contributing\n\nIn lieu of a formal style guide, take care to maintain the existing coding style. \nAdd unit tests for any new or changed functionality. Lint and test your code. \n\n  \n## Release Notes\n\n#### v.1.2.4\n\n- Merged past and future time calculation. \n- Depricated future calculation, use only simple function call.\n\n#### v.1.2.3\n\n- Add CDN links\n\n#### v.1.2.2\n\n- Add functionality for \"future\" date calculation.\n\n#### v.1.1.1\n\n- Add troubleshooting for wrong date format.\n\n#### v.1.1.2\n\n- Add seconds display functionality.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikepenzin%2Ftimeago-simple","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikepenzin%2Ftimeago-simple","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikepenzin%2Ftimeago-simple/lists"}