kingdread / watson-worktime Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
I personally like the h:mm:ss
syntax, as I prefer to see "20 minutes" than "0.3 hours". I can also see though that the "xxx hours" format might be nicer for some people, especially since the default timedelta
string representation takes days as 24 hours (and not workdays).
I therefore propose two changes:
timedelta
string representation to use working days ("overtime: 2 working days, 2:10:20")Currently, vacation days have to be added individually.
As most people often take multiple vacation days in a row, this is a somewhat tedious method of entry.
Instead users should be able to add vacation days with from and to flags.
Vacation day ranges should automatically exclude weekends and public holidays.
Watson-worktime could easily be extended to allow users to keep track of how many vacation days they have taken/have available in the current year.
To do so, the config file needs an option to set the allowed vacation days per year and the output of vacation list
needs to be extended.
If a user wants to compute overtime from a certain start date (e.g. from when they started a new job) rather than from the beginning of time itself, they have to add the from flag to every call.
We can add an option to the configuration file instead.
The from flag should still have priority if set.
There should be a way to add days that are, e.g., half work and half vacation.
Possible syntax: watson-worktime vacation add 1970-01-01x0.5
Same handling as vacation days, but should be separate for more granulated statistics.
Implement once issue #3 is closed as partial sick days are also needed anyways.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.