{"id":14956052,"url":"https://github.com/jenorish/available_time","last_synced_at":"2025-10-06T09:31:32.154Z","repository":{"id":59150852,"uuid":"127126123","full_name":"jenorish/available_time","owner":"jenorish","description":"Gem to find available time in a day","archived":false,"fork":false,"pushed_at":"2018-03-28T14:31:11.000Z","size":25,"stargazers_count":2,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-29T14:18:32.466Z","etag":null,"topics":["availability","ruby","rubyonrails","time","timeinterval","timeslot","timeslots"],"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/jenorish.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-28T10:49:01.000Z","updated_at":"2023-03-27T10:16:33.000Z","dependencies_parsed_at":"2022-09-13T11:00:40.063Z","dependency_job_id":null,"html_url":"https://github.com/jenorish/available_time","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/jenorish%2Favailable_time","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenorish%2Favailable_time/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenorish%2Favailable_time/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jenorish%2Favailable_time/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jenorish","download_url":"https://codeload.github.com/jenorish/available_time/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235519938,"owners_count":19003201,"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":["availability","ruby","rubyonrails","time","timeinterval","timeslot","timeslots"],"created_at":"2024-09-24T13:12:14.441Z","updated_at":"2025-10-06T09:31:31.790Z","avatar_url":"https://github.com/jenorish.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AvailableTime\n\nGem to find available time in a day.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'available_time'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install available_time\n\n## Usage\n\n ## Supporting multiple format calling\n\t    t =  AvailableTime::TimeSlot.new(8.30,\"5.30pm\")\n\t    t =  AvailableTime::TimeSlot.new(8.30,\"17.30\")\n\t    t =  AvailableTime::TimeSlot.new(8.30,\"17:30\")\n\t    t =  AvailableTime::TimeSlot.new(8.30,\"5:30pm\")\n\t    appointments = [[\"09:00\",\"9:30\"],[\"10:01\",\"11:30\"],[\"14:00\",\"16:30\"],[\"13:01\",\"13:30\"]]\n            t.free_slots(appointments)\n\t    result #=\u003e  [[\"08:30 AM\", \"09:00 AM\"], [\"09:30 AM\", \"10:00 AM\"], [\"11:30 AM\", \"12:00 PM\"], [\"12:00 PM\", \"12:30 PM\"], [\"12:30 PM\", \"01:00 PM\"], [\"01:30 PM\", \"02:00 PM\"], [\"04:30 PM\", \"05:00 PM\"], [\"05:00 PM\", \"05:30 PM\"]]\n\t  \n ## Supporting multile time format\n\n\t  appointments = [[\"09:00\",\"9:30\"],[\"10:01\",\"11:30\"],[\"14:00\",\"16:30\"],[\"1:01pm\",\"1:30 Pm\"],[\"12:30PM\", \"01:00PM\"]]\n\t  appointments = [[\"09:00\",\"9:30\"],[\"10:01\",\"11:30\"],[\"14:00\",\"16:30\"],[\"1:01pm\",\"1:30 Pm\"],[\"12:30 PM\", \"01:00 PM\"]]\t\n## Interval\n      Defalut interval is 30 minutes, We can change it by passing \n\n      t =  TimeSlot.new(8.30,\"5.30pm\",:interval =\u003e 5.minutes)\n\n## Rest\n\t  We can pass rest time as well \n\t  Ex.\n\t  t =  TimeSlot.new(8.30,\"5.30pm\",:rest =\u003e 5.minutes)\n\t  So result will generate like 5 mins rest time\n\n \t  [[\"08:30 AM\", \"09:00 AM\"], [\"09:05 AM\", \"09:35 AM\"], [\"09:40 AM\", \"10:10 AM\"], [\"10:15 AM\", \"10:45 AM\"], [\"11:35 AM\", \"12:05 PM\"], [\"12:10 PM\", \"12:40 PM\"], [\"12:45 PM\", \"01:15 PM\"], [\"01:20 PM\", \"01:50 PM\"], [\"01:55 PM\", \"02:25 PM\"], [\"02:30 PM\", \"03:00 PM\"], [\"03:35 PM\", \"04:05 PM\"], [\"04:10 PM\", \"04:40 PM\"], [\"04:45 PM\", \"05:15 PM\"]]\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/jenorish/available_time. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the AvailableTime project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/available_time/blob/master/CODE_OF_CONDUCT.md).\n\n# available_time\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjenorish%2Favailable_time","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjenorish%2Favailable_time","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjenorish%2Favailable_time/lists"}