{"id":19648772,"url":"https://github.com/bestpractical/business-hours","last_synced_at":"2025-10-27T05:08:10.920Z","repository":{"id":676623,"uuid":"320232","full_name":"bestpractical/business-hours","owner":"bestpractical","description":null,"archived":false,"fork":false,"pushed_at":"2019-01-11T19:35:41.000Z","size":52,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-02-27T00:48:33.768Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://search.cpan.org/dist/Business-Hours","language":"Perl","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bestpractical.png","metadata":{"files":{"readme":"README","changelog":"Changes","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":"2009-09-28T18:07:26.000Z","updated_at":"2022-06-10T21:24:46.000Z","dependencies_parsed_at":"2022-08-16T10:40:24.033Z","dependency_job_id":null,"html_url":"https://github.com/bestpractical/business-hours","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/bestpractical/business-hours","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bestpractical%2Fbusiness-hours","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bestpractical%2Fbusiness-hours/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bestpractical%2Fbusiness-hours/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bestpractical%2Fbusiness-hours/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bestpractical","download_url":"https://codeload.github.com/bestpractical/business-hours/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bestpractical%2Fbusiness-hours/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281216687,"owners_count":26463033,"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","status":"online","status_checked_at":"2025-10-27T02:00:05.855Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-11T14:49:54.872Z","updated_at":"2025-10-27T05:08:10.876Z","avatar_url":"https://github.com/bestpractical.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"NAME\n    Business::Hours -\n\nSYNOPSIS\n      use Business::Hours;\n      my $hours = Business::Hours-\u003enew();    \n      # Get a Set::IntSpan of all the business hours in the next week.\n      # use the default business hours of 9am to 6pm localtime.\n      $hours-\u003ebusiness_hours_in_timespan(Start =\u003e time(), End =\u003e time()+(86400*7));\n\nDESCRIPTION\n    This module is a simple tool for calculating business hours in a time\n    period. Over time, additional functionality will be added to make it\n    easy to calculate the number of business hours between arbitrary dates.\n\nUSAGE\nBUGS\n    Yes\n\nSUPPORT\n    Send email to bug-business-hours@rt.cpan.org\n\nAUTHOR\n        Jesse Vincent\n        Best Practical Solutions, LLC \n        jesse@cpan.org\n        http://www.bestpractical.com\n\nCOPYRIGHT\n    This program is free software; you can redistribute it and/or modify it\n    under the same terms as Perl itself.\n\n    The full text of the license can be found in the LICENSE file included\n    with this module.\n\nSEE ALSO\n    perl(1).\n\n  sample_function\n     Usage     : How to use this function/method\n     Purpose   : What it does\n     Returns   : What it returns\n     Argument  : What it wants to know\n     Throws    : Exceptions and other anomolies\n     Comments  : This is a sample subroutine header.\n               : It is polite to include more pod and fewer comments.\n\n    See Also :\n\n  business_hours\n    Set the business hours for this Business::Hours object. Takes a hash of\n    the form :\n\n    { 0 =\u003e { Name =\u003e 'Sunday', Start =\u003e 'HH::MM', End =\u003e 'HH::MM'},\n\n        1 =\u003e { Name =\u003e 'Monday',\n                Start =\u003e 'HH::MM',\n                   End =\u003e 'HH::MM'},\n        ....\n\n        6 =\u003e { Name =\u003e 'Saturday',\n                Start =\u003e 'HH::MM',\n                   End =\u003e 'HH::MM'},\n        };\n\n        Start and end times are of the form HH:MM.  Valid times are\n        from 00:00 to 23:59.  If your hours are from 9am to 6pm, use\n        Start =\u003e '9:00', End =\u003e '18:00'.  A given day MUST have a start\n        and end time OR may declare both Start and End to be undef, if\n        there are no valid hours on that day.\n\n  for_timespan\n    Takes a paramhash with the following parameters\n\n            Start =\u003e The start of the period in question in seconds since the epoch\n            End =\u003e The end of the period in question in seconds since the epoch\n\n    Returns a Set::IntSpan of business hours for this period of time.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbestpractical%2Fbusiness-hours","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbestpractical%2Fbusiness-hours","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbestpractical%2Fbusiness-hours/lists"}