{"id":18355363,"url":"https://github.com/midwire/time_ago_words","last_synced_at":"2025-04-10T01:37:19.731Z","repository":{"id":62430440,"uuid":"57926246","full_name":"midwire/time_ago_words","owner":"midwire","description":"Return the difference between two times using words.","archived":false,"fork":false,"pushed_at":"2016-05-05T12:35:46.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-16T03:47:15.496Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/midwire.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-02T22:52:27.000Z","updated_at":"2016-05-02T22:54:43.000Z","dependencies_parsed_at":"2022-11-01T20:18:37.057Z","dependency_job_id":null,"html_url":"https://github.com/midwire/time_ago_words","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/midwire%2Ftime_ago_words","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/midwire%2Ftime_ago_words/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/midwire%2Ftime_ago_words/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/midwire%2Ftime_ago_words/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/midwire","download_url":"https://codeload.github.com/midwire/time_ago_words/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248141369,"owners_count":21054443,"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-11-05T22:06:41.043Z","updated_at":"2025-04-10T01:37:19.707Z","avatar_url":"https://github.com/midwire.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TimeAgoWords\n\nReturn the difference between two times using words.\n\nThis is a limited port of the Rails ActionView DateHelper method `distance_of_time_in_words`. I did not need to worry about times greater than 12 months so I punted and made those times return \"a long time\". Feel free to drop a Pull Request if you want to add that.\n\nThis is my first attempt at a Hex package. Please let me know if you have suggestions to do something better.\n\n## Installation\n\nThe package can be installed as follows:\n\n  1. Add time_ago_words to your list of dependencies in `mix.exs`:\n\n        def deps do\n          [{:time_ago_words, \"~\u003e 0.0.2\"}]\n        end\n\n  2. Ensure time_ago_words is started before your application:\n\n        def application do\n          [applications: [:time_ago_words]]\n        end\n\n## Usage\n\n    post = Repo.get!(Post, id)\n    TimeAgoWords.diff(post.inserted_at)\n    # =\u003e \"about 3 days\"\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmidwire%2Ftime_ago_words","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmidwire%2Ftime_ago_words","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmidwire%2Ftime_ago_words/lists"}