{"id":15631478,"url":"https://github.com/zachleat/humane-dates","last_synced_at":"2026-03-06T07:03:02.507Z","repository":{"id":1040392,"uuid":"870300","full_name":"zachleat/Humane-Dates","owner":"zachleat","description":"Show the difference between a date and now (4 days ago)","archived":false,"fork":false,"pushed_at":"2014-09-10T21:39:37.000Z","size":6730,"stargazers_count":186,"open_issues_count":2,"forks_count":24,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-12-19T03:09:57.926Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.zachleat.com/web/2008/03/23/yet-another-pretty-date-javascript/","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/zachleat.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":"2010-08-29T16:08:25.000Z","updated_at":"2021-12-22T16:30:55.000Z","dependencies_parsed_at":"2022-08-16T11:50:50.864Z","dependency_job_id":null,"html_url":"https://github.com/zachleat/Humane-Dates","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachleat%2FHumane-Dates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachleat%2FHumane-Dates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachleat%2FHumane-Dates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zachleat%2FHumane-Dates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zachleat","download_url":"https://codeload.github.com/zachleat/Humane-Dates/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231468021,"owners_count":18381174,"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-10-03T10:40:35.130Z","updated_at":"2026-03-06T07:03:02.194Z","avatar_url":"https://github.com/zachleat.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Humane-Dates\n============\n\nA better way to display relative dates using JavaScript. Instead of a raw date\nstring, this script will return strings like \"2 hours ago\" or \"5 days\".\n\n## Usage\n\n```js\nhumaneDate(new Date);\nhumaneDate('2008-01-28T20:24:17Z');\n```\n\n### jQuery Plugin\n\n```no-highlight\n\u003cspan title=\"2008-01-28T20:24:17Z\"\u003eJanuary 1, 2008 20:24:17 GMT\u003c/span\u003e\n\n$('span').humaneDates();\n\n\u003ctime datetime=\"2008-01-28T20:24:17Z\"\u003eJanuary 1, 2008 20:24:17 GMT\u003c/time\u003e\n\n$('time').humaneDates();\n```\n\n\n## Tests\n\nTo run the full test suite:\n\n```bash\ncd test\n./test.sh\n```\n\n## License\n\nCopyright (c) 2008 Dean Landolt (deanlandolt.com)\nRe-write by Zach Leatherman (zachleat.com)\n \nAdopted from the John Resig's pretty.js\n    at http://ejohn.org/blog/javascript-pretty-date\nand henrah's proposed modification \n    at http://ejohn.org/blog/javascript-pretty-date/#comment-297458\n\nLicensed under the MIT license.\n\nSee more at http://www.zachleat.com/web/2008/03/23/yet-another-pretty-date-javascript/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzachleat%2Fhumane-dates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzachleat%2Fhumane-dates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzachleat%2Fhumane-dates/lists"}