Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Negative time ranges #43

Closed
jotaen opened this issue Mar 29, 2021 · 4 comments
Closed

Negative time ranges #43

jotaen opened this issue Mar 29, 2021 · 4 comments
Labels
ENHANCEMENT Ideas and feature requests

Comments

@jotaen
Copy link
Owner

jotaen commented Mar 29, 2021

In analogy to tracking a negative duration (-1h) it could be useful to allow tracking “negative” time ranges, i.e. a specific period of time to be deduced from the total.

Syntax ideas:

2020-01-01
    8:00-17:00 Work
    -12:00-13:00 Lunch break
    -(12:00-13:00) Lunch break
    -[12:00-13:00] Lunch break

Currently favouring the [] syntax, as it’s more distinct from the should-total.

Source: #3

@acikek
Copy link

acikek commented Mar 31, 2021

Why does it need to be wrapped in () or []?

@jotaen
Copy link
Owner Author

jotaen commented Apr 1, 2021

My reasoning was for visual clarity. It’s not necessary from a technical point of view, but I feel that it might be too easy to overlook otherwise. I added the “naked” version as well in the example above, I’m also open to any other suggestion.

@vladdeSV
Copy link
Contributor

vladdeSV commented Apr 1, 2021

I am in favor of wrapping in (), with the same reasoning as @jotaen:

for visual clarity.

@vladdeSV
Copy link
Contributor

How would whitespace be handled inside and before the parentheses?

Are the following okay?

2021-04-20
  -(0:00-1:00) foo
  -    ( 0:00   -      1:00  ) foo

Repository owner locked and limited conversation to collaborators Oct 4, 2021
@jotaen jotaen closed this as completed Oct 4, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
ENHANCEMENT Ideas and feature requests
Projects
None yet
Development

No branches or pull requests

3 participants