-
Notifications
You must be signed in to change notification settings - Fork 97
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
how to set availiable time per day to 8h? #532
Comments
Currently not. |
Do you think that is something worth looking into? Would this be a good candidate for "first issue"? I'm interested in this and maybe wish to invest my own time into this. |
@kajmaj87 I have given this some thought and did some research. Currently, one can emulate a 8h work day (40h work week) by setting some exclusions like this
This way you get your desired values: But I guess you do not want the exclusion block rendered here... So as a first step one could implement a configuration value for the chart to not display the exclusion blocks. This should be a good first issue. I am still contemplating how one can integrate something like working hours.
So, I see a good starting point but also some head scratching ahead. Are you still in? |
How does this emulation work when someone has flexible working time? My issue is that I usually start at 7:00 and have a few short breaks during the day when I turn the timer off and also do some work between 17:00 and 20:00, this is something I cannot predict. For me personally it would be best if exclusions and amount of working hours are separate things, maybe mutually exclusive based on configuration. Of course it would be best if holidays are taken into account thought. Yes, I'm interested in this and would like to contribute but cannot promise how fast this would go (not my main focus and C++ not being my "native" language). |
An exclusion does not mean you cannot track time then. Only open intervals get truncated then, but when you tell Timewarrior to stop tracking within an exclusion, the interval is closed at the specified time, not at the exclusion border.
Ok, let's do a POC adding a separate line |
Ok, let me try, I'll report back when I have something. |
In addition to "per day" a "per week" or even "per month" config might be useful for some workplaces as well. If I work 40h each week, it doesn't matter if I do 8h for 5 days, or maybe 10h for 4 days or if I work a bit longer on Monday and then realize on Friday that I can go home earlier. |
The output of month command gives such a summary at the end:
Is it possible to adjust it so that timew counts only 8h per day, but without limiting the calculation to defined values like 9:00-17:00? My work schedule is very flexible and I'm only interested in the amount of work I need to do until the end of month and how many hours in month are there.
Is there a config to change 24h per day to 8h?
The text was updated successfully, but these errors were encountered: