{"id":16254780,"url":"https://github.com/yocontra/thenceforth","last_synced_at":"2025-04-08T12:48:29.299Z","repository":{"id":229049442,"uuid":"159448446","full_name":"yocontra/thenceforth","owner":"yocontra","description":"🕥Date/Time parsing to human readable messages","archived":false,"fork":false,"pushed_at":"2022-09-27T16:13:29.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T01:04:43.201Z","etag":null,"topics":["date","time","timeago","timeparser"],"latest_commit_sha":null,"homepage":"","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/yocontra.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2018-11-28T05:26:34.000Z","updated_at":"2024-03-21T17:38:20.000Z","dependencies_parsed_at":"2024-03-21T19:48:53.774Z","dependency_job_id":"b3a3baa4-fcf4-4193-80a5-a3d2f5c42b5a","html_url":"https://github.com/yocontra/thenceforth","commit_stats":null,"previous_names":["yocontra/thenceforth"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yocontra%2Fthenceforth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yocontra%2Fthenceforth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yocontra%2Fthenceforth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yocontra%2Fthenceforth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yocontra","download_url":"https://codeload.github.com/yocontra/thenceforth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247846873,"owners_count":21006090,"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":["date","time","timeago","timeparser"],"created_at":"2024-10-10T15:24:16.368Z","updated_at":"2025-04-08T12:48:29.276Z","avatar_url":"https://github.com/yocontra.png","language":"JavaScript","readme":"# Thenceforth\n\n\u003e Parse Date() to human readable time messages\n\nOther time libraries dealing with \"time since\" or \"time ago\" do not have a limit on when to switch from a date sentence to a formatted date. This tiny (1.4k uncompressed ) library returns the human readable date sentence up to one month ago, where it returns either the base form mm/dd/yyyy or the pretty form 'Day Month day, Year'\n\n### Install\n\n```sh\n$ npm i thenceforth\n```\n```sh\n$ yarn add thenceforth\n```\n\n### Example\n\nTimes are parsed to when they happened in a day:\n\n```js\nthenceforth(new Date())\n// =\u003e Just now\n\nconst twentyMinutes = 60000 * 20\nthenceforth(new Date().getTime() - twentyMinutes)\n// =\u003e 20 minutes ago\n\n```\n\nWhile times greater than one month are returned as a date:\n\n```js\n\nthenceforth(new Date('2010-10-11T00:00:00+05:30')))\n// =\u003e 'Monday November 1, 2010'\n\n```\n\nThe full form date is much easier to understand than \"one year ago\", as one year could be any month within 10-14 months ago. Also the day is not provided with \"one year ago\", and \"five years ago\" does not make sense for date specific events.\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyocontra%2Fthenceforth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyocontra%2Fthenceforth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyocontra%2Fthenceforth/lists"}