{"id":26328696,"url":"https://github.com/forward3d/datebox","last_synced_at":"2025-03-15T21:18:19.098Z","repository":{"id":9412011,"uuid":"11280389","full_name":"forward3d/datebox","owner":"forward3d","description":"Offers help with managing dates and periods","archived":false,"fork":false,"pushed_at":"2021-04-29T19:57:59.000Z","size":26,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":21,"default_branch":"master","last_synced_at":"2024-04-24T08:55:23.260Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/forward3d.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.txt","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":"2013-07-09T11:06:18.000Z","updated_at":"2017-06-09T15:58:57.000Z","dependencies_parsed_at":"2022-09-10T05:41:48.958Z","dependency_job_id":null,"html_url":"https://github.com/forward3d/datebox","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forward3d%2Fdatebox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forward3d%2Fdatebox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forward3d%2Fdatebox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forward3d%2Fdatebox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/forward3d","download_url":"https://codeload.github.com/forward3d/datebox/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243790995,"owners_count":20348386,"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":"2025-03-15T21:18:18.414Z","updated_at":"2025-03-15T21:18:19.085Z","avatar_url":"https://github.com/forward3d.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Datebox\n\nProvides help with managing dates and periods\n\n## Installation\n\n    gem install datebox\n\n## Usage\n\nInclude gem in Gemfile\n\n    gem 'datebox'\n    # or\n    gem 'datebox', :git =\u003e 'git@github.com:forward3d/datebox'\n\nAllows using periods\n\n    period = Datebox::Period.new(\"2013-06-10\", \"2013-06-27\")\n    period.from\n    period.to\n\nAllows splitting periods (returns ending dates of periods)\n\n    Datebox::Period.split_dates(Date.parse(\"2013-06-14\"), Date.parse(\"2013-06-27\"), \"week\")\n\nIt's also possible to calculate periods relative to given dates\n\n    period_month = Datebox::Relative.last_month.to('2013-07-09') # uses period method\n    preiod_week = Datebox::Relative.last(:week).to('2013-07-09') # uses period symbol\n\nIt's best to have a look at code \u0026 tests","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforward3d%2Fdatebox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fforward3d%2Fdatebox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforward3d%2Fdatebox/lists"}