Closed guglielmo closed 3 years ago
What I usually do in this case is using the --at
flag of the Watson start
/ stop
/ restart
commands:
$ watson stop --at 12:34
$ watson restart --at 14:02
Or a restart
/ start
(with stop_on_start
/ stop_on_restart
settings activated) and edit the lunchtime break frame (A1) to change the stop
date/time.
Do you think it will suit your needs?
I think this is fit, it's just two commands.
Many times you forget to stop the tracking for a lunch break, or a call, or another interrupting task.
I find it useful to have the possibility of inserting a break (or interval) into a frame, effectively splitting the frame into 2 distinct ones.
A break, or interval, is defined only by a start datetime and an end datetime.
A break
BR
is inserted in frameA
, dividing it into framesA1
andA2
.The following are true:
A1.start_datetime = A.start_datetime
A1.end_datetime = BR.start_datetime
A2.start_datetime = BR.end_datetime
A2.end_datetime = A.end_datetime
A
toA1
andA2
.A simpler way to look at this could be to insert a break just by changing the starting datetime of
A
, and generating a new frameA1
that is a copy ofA
in the past, up to the beginning of the break.Then
A
will continnue to be the current frame, andA1
will be the frame before the break.Please, consider I am a newbie on Watson, maybe there's already a way to approach this issue.