Comments (6)
Hi,
a resume timer feature would be highly appreciated!
My suggestion on how to implement this would be the following:
[
{
"desc": "something else",
"workTimes": [
{
"start": time1,
"end": time2
},
{
"start": time1,
"end": time2
},
{
"start": time1,
"end": time2
}
]
}
]
I would be down to try and implement this if you think this is a valid approach
from tasktimer.
The approach that I suggested would not break backward compatibility, with only one field added (that may safely default to 0 if not present).
Otherwise one would have to implement format conversion as well, so the user files won't become useless after update.
from tasktimer.
feel free to take a swing at it, yes
from tasktimer.
The approach that I suggested would not break backward compatibility, with only one field added (that may safely default to 0 if not present).
Otherwise one would have to implement format conversion as well, so the user files won't become useless after update.
Ah, of course you're right I totally missed that!
I'm having a little trouble understanding your proposed solution, though:
If I understand correctly: when we resume a task we take the delta between the current time and the end time and add this duration (in seconds) to the breakTime. And when we pause the task again we just update the end time and the new total is now the delta between end and start time, minus the breakTime in seconds?
from tasktimer.
That is exactly what I had in mind. Sounds even better after you explained it back to me. :)
from tasktimer.
Resurrecting the thread, if anyone is interested in pursuing it a little further - there's a working version with task restarter here #127
Caution
Will work only on new projects, I haven't tested it with any old ones. As it changed the base structure of entities. Some exporters may not work either, but the report I use works fine.
from tasktimer.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tasktimer.