{"id":23379034,"url":"https://github.com/colevoss/sincewhen","last_synced_at":"2025-08-26T08:13:59.256Z","repository":{"id":56895955,"uuid":"13604149","full_name":"colevoss/SinceWhen","owner":"colevoss","description":"Various Date and Time helpers","archived":false,"fork":false,"pushed_at":"2014-05-15T05:47:54.000Z","size":191,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-26T01:21:06.060Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/colevoss.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-10-15T22:38:52.000Z","updated_at":"2014-05-15T05:47:54.000Z","dependencies_parsed_at":"2022-08-20T17:10:21.957Z","dependency_job_id":null,"html_url":"https://github.com/colevoss/SinceWhen","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/colevoss%2FSinceWhen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colevoss%2FSinceWhen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colevoss%2FSinceWhen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/colevoss%2FSinceWhen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/colevoss","download_url":"https://codeload.github.com/colevoss/SinceWhen/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247785942,"owners_count":20995644,"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-12-21T19:16:18.323Z","updated_at":"2025-04-08T05:50:18.014Z","avatar_url":"https://github.com/colevoss.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SinceWhen\n\nReturns a string containing the amount of time since the date given with\nvarying scopes of specificy.\n\n**Currently on the drawing board:\n* Support for weeks\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'since_when'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install since_when\n\n\n## Usage\n\n    SinceWhen::time_since( date, :scope = optional )\n\n* date can be a Date object, DateTime object, or anything else that can be turned into a DateTime object (ie. ActiveSupport::TimeWithZone)    \n* Scope can be any of the following:\n    * :year\n    * :month (default)\n    * :day\n    * :hour\n    * :minute\n    * :second\n    \n## Example:\n    \n    example_date = Date.new(2001, 2, 3)\n    \n    SinceWhen::time_since( example_date, :month )\n\n    \u003e\u003e \"12 years 8 months\"\n\n    # or\n\n    SinceWhen::time_since( example_date, :day)\n    \n    \u003e\u003e \"12 years 8 months 12 days\"\n    \n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolevoss%2Fsincewhen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcolevoss%2Fsincewhen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcolevoss%2Fsincewhen/lists"}