Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature idea: daily working hours #2

Open
marekyggdrasil opened this issue Apr 27, 2021 · 2 comments
Open

feature idea: daily working hours #2

marekyggdrasil opened this issue Apr 27, 2021 · 2 comments

Comments

@marekyggdrasil
Copy link

I have an idea for a feature. I wanted to contribute it to git-hours but I was not able to build the dev mode (only install from npm).

Idea is providing number of hours on each day, for example:

[
  {
    "email": "[email protected]",
    "author_name": "John Doe",
    "hours": 12.817,
    "commit_count": 14,
    "breakdown": {
        "2021-04-27": 6.817,
        "2021-04-26": 6.0
    }
  },
  {
    "email": "[email protected]",
    "author_name": "Alice Bob",
    "hours": 21.4667,
    "commit_count": 18,
    "breakdown": {
        "2021-04-27": 7.4667,
        "2021-04-26": 6.0,
        "2021-04-25": 7.0,
        "2021-04-24": 1.0
    }
  },
  {
    "email": null,
    "author_name": "Total",
    "hours": 34.2837,
    "commit_count": 32
  }
]

Motivation: Useful to evaluate hours for people who get paid in currencies that have daily price fluctuations, it would allow to make more accurate payment according to hourly rate with taking into account daily exchange rates.

@Ruin0x11
Copy link
Owner

Ruin0x11 commented Apr 29, 2021

This might be useful to have. It might enable more statistical output like gitstats does. Maybe it could be configured by a custom time period, like 1 day or 1 week between repoorts, since it could be a lot of data for a large Git repository.

Also note that, although I am in no position to declare that you must use this software one way or another, git-hours does mention that the time data "might not be accurate enough to be used in billing." I would recommend using a time tracking system for determining the hours worked if people's salaries are involved, and not tool that can only give a rough estimate which can fluctuate significantly based on small changes in the configuration options.

@marekyggdrasil
Copy link
Author

Thank you @Ruin0x11 for your feedback and also for the disclaimer. Personally I was using git-hours to time my personal projects which I occasionally mention how many hours I have spent on particular project in the articles on my blog.

But I do imagine in the future people would use it to time real work and get paid in currencies that fluctuate a lot in price, this is what motivated this idea.

Maybe a more detailed disclaimer should also be included in the readme?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants