{"id":32573297,"url":"https://github.com/jacobemcken/workdays","last_synced_at":"2025-10-29T10:51:04.795Z","repository":{"id":30671194,"uuid":"34227000","full_name":"jacobemcken/workdays","owner":"jacobemcken","description":"Lib and service to calculate workdays in the danish energy market (electricity and gas)","archived":false,"fork":false,"pushed_at":"2016-04-06T10:17:55.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-28T00:44:32.941Z","etag":null,"topics":["clojure","date"],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jacobemcken.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":"2015-04-19T22:32:06.000Z","updated_at":"2017-07-30T08:26:05.000Z","dependencies_parsed_at":"2022-09-08T16:02:19.297Z","dependency_job_id":null,"html_url":"https://github.com/jacobemcken/workdays","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/jacobemcken/workdays","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacobemcken%2Fworkdays","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacobemcken%2Fworkdays/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacobemcken%2Fworkdays/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacobemcken%2Fworkdays/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jacobemcken","download_url":"https://codeload.github.com/jacobemcken/workdays/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jacobemcken%2Fworkdays/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281608615,"owners_count":26530372,"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-29T02:00:06.901Z","response_time":59,"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":["clojure","date"],"created_at":"2025-10-29T10:50:30.352Z","updated_at":"2025-10-29T10:51:04.790Z","avatar_url":"https://github.com/jacobemcken.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Workday calendar\n\nIn the danish gas and electricity and gas market many business processes\nis required to be instantiated or finised within a time limit calculated\nin \"workdays\".\n\nNon workdays are more that just weekends because danish hollydays needs\nto be taken into account as well. Energinet has specified non workdays\nin the D1 regulation.\n\n\n## Usage\n\nThis can be used as a clojure lib:\n\n``` clojure\n(nth-workday (t/local-date 2015 4 19) 10)\n#\u003cLocalDate 2015-05-05\u003e\n```\n\nor as a webservice:\n\nhttp://localhost:3000/date-subsequent-to-workdays/?ref-date=2015-04-19\u0026workdays=10\n\nHTTP body: 2015-05-05\n\nThe webservice validates both ref-date and workdays and returns 400 bad\nrequest if one or both provided parameters uses a wrong format.\nAn error message can be found in the HTTP body.\n\nref-date must be a valid iso 8601 string while workdays must be an integer\n(both positive and negative numbers are allowed).\n\n\n## Build and run\n\n``` bash\nlein ring uberjar\njava -jar target/workdays-1.1.0-standalone.jar\n```\n\nTo use an alternative port for Jetty (3000 is default) just set the\nenvironment variable PORT ie.\n\n``` bash\nexport PORT=8080\njava -jar target/workdays-1.1.0-standalone.jar\n```\n\n\nResulting in a startup looking like the following:\n\n```\n2015-04-23 00:10:11.965:INFO:oejs.Server:jetty-7.x.y-SNAPSHOT\n2015-04-23 00:10:12.002:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:8080\nStarted server on port 8080\n```\n\n## License\n\nCopyright © 2014\n\nDistributed under the Eclipse Public License either version 1.0 or (at\nyour option) any later version.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacobemcken%2Fworkdays","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjacobemcken%2Fworkdays","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjacobemcken%2Fworkdays/lists"}