{"id":16105777,"url":"https://github.com/devlights/git-calc-worktime","last_synced_at":"2026-04-21T09:33:18.937Z","repository":{"id":253221461,"uuid":"842841389","full_name":"devlights/git-calc-worktime","owner":"devlights","description":"git log --author=\"$GIT_USER_NAME\" --format=\"%H %ai\" の結果を集計するプログラムです。","archived":false,"fork":false,"pushed_at":"2024-08-20T05:44:12.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-23T15:35:13.765Z","etag":null,"topics":["git","go","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","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/devlights.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-15T07:54:57.000Z","updated_at":"2024-08-20T05:43:17.000Z","dependencies_parsed_at":"2024-08-15T10:05:21.696Z","dependency_job_id":"c4324b7c-d98b-4231-a0da-d4b4e352c1cd","html_url":"https://github.com/devlights/git-calc-worktime","commit_stats":null,"previous_names":["devlights/git-calc-worktime"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/devlights/git-calc-worktime","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlights%2Fgit-calc-worktime","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlights%2Fgit-calc-worktime/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlights%2Fgit-calc-worktime/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlights%2Fgit-calc-worktime/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devlights","download_url":"https://codeload.github.com/devlights/git-calc-worktime/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlights%2Fgit-calc-worktime/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32085531,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T06:27:27.065Z","status":"ssl_error","status_checked_at":"2026-04-21T06:27:21.250Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["git","go","golang"],"created_at":"2024-10-09T19:10:36.088Z","updated_at":"2026-04-21T09:33:18.888Z","avatar_url":"https://github.com/devlights.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Overview\n\ngit log --author=\"$GIT_USER_NAME\" --format=\"%H %ai\" の結果を集計するプログラムです。\n\n```gcw``` は、```Git Calc Worktime``` の略です。\n\n# Install\n\n```sh\ngo install github.com/devlights/git-calc-worktime/cmd/gcw@latest\n```\n\n# Usage\n\n```sh\n$ gcw --help\nUsage of ./gcw:\n-dir string\n        Path of git repository (default \".\")\n-tz string\n        Local Timezone (default \"Asia/Tokyo\")\n-user string\n        Git username\n```\n```sh\n$ gcw -user Gitユーザ名 -dir リポジトリのパス -tz ローカルタイムゾーン(デフォルトはAsia/Tokyo)\nhour        Monday to Friday                      Saturday and Sunday\n00      0                                     0\n01      0                                     0\n02      0                                     0\n03      0                                     0\n04      0                                     0\n05      0                                     0\n06      0                                     0\n07      0                                     0\n08      0                                     0\n09      4                                     0\n10    102 **************                      0\n11    115 ***************                     0\n12     27 ***                                 0\n13    132 ******************                  2\n14     92 ************                        4\n15    159 *********************              20 **\n16    182 *************************          25 ***\n17    148 ********************                3\n18    167 **********************              8 *\n19    167 **********************              4\n20     68 *********                           2\n21     48 ******                              0\n22     17 **                                  0\n23      3                                     0\n\nTotal:   1431 (95.5%)     68 (4.5%)\n```\n\n# Memo\n\nこのプログラムは、[以下のブログ記事](https://ivan.bessarabov.com/blog/famous-programmers-work-time-part-2-workweek-vs-weekend)で利用されていた[Perlスクリプト](https://gist.github.com/bessarabov/30aee15c5a7c438fe5f9f3f623222b39)をGoに移植したものです。\n元のスクリプトは\n\n\t$ git log --author=\"$GIT_USER_NAME\" --format=\"%H %ai\" | perl script.pl\n\nとパイプ経由で入力を受け取り処理するようになっていましたが、Windows環境でも実行しやすいように\n処理内で git コマンドも実行するように変更しています。\n\n素晴らしいアイデアを教えてくれた元記事に感謝します。\n\n# Build\n\n[task](https://taskfile.dev/#/)を使っています。\n\n```sh\n$ task build\n```\n\n# REFERENCES\n\n- [At what time of day do famous programmers work?](https://ivan.bessarabov.com/blog/famous-programmers-work-time)\n- [At what time of day do famous programmers work? Part 2. Workweek vs Weekend.](https://ivan.bessarabov.com/blog/famous-programmers-work-time-part-2-workweek-vs-weekend)\n- [Script to generate data shown in post 'At what time of day does famous programmers work? Part 2. Workweek vs Weekend.](https://gist.github.com/bessarabov/30aee15c5a7c438fe5f9f3f623222b39) ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevlights%2Fgit-calc-worktime","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevlights%2Fgit-calc-worktime","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevlights%2Fgit-calc-worktime/lists"}