{"id":40808141,"url":"https://github.com/sn/wobbly","last_synced_at":"2026-01-21T21:11:16.827Z","repository":{"id":56898364,"uuid":"112236150","full_name":"sn/wobbly","owner":"sn","description":"Wobbly is a simple Ruby library that parses shorthand relative date and time duration strings, making it easy to specify durations like \"1h2m\" (1 hour, 2 minutes) or \"5Y\" (5 years) in a concise format.","archived":false,"fork":false,"pushed_at":"2024-11-02T13:36:13.000Z","size":23,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-13T07:29:28.560Z","etag":null,"topics":["date","datetime","ruby","ruby-gem","ruby-library","rubygems"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/wobbly","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sn.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}},"created_at":"2017-11-27T19:02:04.000Z","updated_at":"2025-05-21T08:47:23.000Z","dependencies_parsed_at":"2022-08-21T02:20:32.820Z","dependency_job_id":null,"html_url":"https://github.com/sn/wobbly","commit_stats":null,"previous_names":["seannieuwoudt/wobbly"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/sn/wobbly","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sn%2Fwobbly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sn%2Fwobbly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sn%2Fwobbly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sn%2Fwobbly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sn","download_url":"https://codeload.github.com/sn/wobbly/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sn%2Fwobbly/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28643023,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T18:04:35.752Z","status":"ssl_error","status_checked_at":"2026-01-21T18:03:55.054Z","response_time":86,"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":["date","datetime","ruby","ruby-gem","ruby-library","rubygems"],"created_at":"2026-01-21T21:11:16.211Z","updated_at":"2026-01-21T21:11:16.816Z","avatar_url":"https://github.com/sn.png","language":"Ruby","readme":"## Wobbly: Simple Date Token Parser for Ruby\n\nWobbly is a Ruby library that parses a given time-based token string to calculate a date in the future. It's lightweight and intuitive, perfect for adding flexible time calculations to your Ruby projects.\n\n[![\"Buy Me A Coffee\"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://buymeacoffee.com/underwulf)\n\nRequirements\n-----------------\nRuby 2.0.0 or higher is recommended.\n\nInstallation\n-----------------\nInstall the [gem](https://rubygems.org/gems/wobbly) with:\n\n```bash\ngem install wobbly\n```\n\nGetting Started\n-----------------\n\n```ruby\nrequire 'wobbly'\n\nWobbly.in('1h2m') # =\u003e 2017-11-27 19:58:44 +0200\n```\n\nAvailable Tokens\n-----------------\nWobbly supports the following tokens, which can be combined in any order:\n\n- `s` - seconds\n- `m` - minutes\n- `h` - hours\n- `D` - days\n- `W` - weeks\n- `M` - months (approximated as 30 days)\n- `Y` - years (approximated as 365 days)\n\nExamples\n-----------------\nHere are some usage examples demonstrating how Wobbly interprets different token strings:\n\n```ruby\nWobbly.in('1h2m8s')    # Adds 1 hour, 2 minutes, and 8 seconds to the current time\nWobbly.in('5Y')        # Adds 5 years to the current time\nWobbly.in('3Y8m')      # Adds 3 years and 8 minutes to the current time\nWobbly.in('3Y8M2W1D')  # Adds 3 years, 8 months, 2 weeks, and 1 day to the current time\n```\n\nRunning the tests\n-----------------\nTo test Wobbly, run the following command:\n\n```bash\nrake test\n```\n\nLicense\n-----------------\nPlease see [LICENSE](https://github.com/sn/Wobbly/blob/master/LICENSE) for licensing details.\n\nAuthor\n-----------------\n[github.com/sn](https://github.com/sn) \n","funding_links":["https://buymeacoffee.com/underwulf"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsn%2Fwobbly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsn%2Fwobbly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsn%2Fwobbly/lists"}