Skip to content
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

[feature] Timestamp calculation (not from today) #55

Open
AlfredPianist opened this issue Apr 19, 2024 · 1 comment
Open

[feature] Timestamp calculation (not from today) #55

AlfredPianist opened this issue Apr 19, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@AlfredPianist
Copy link

Is your feature request related to a problem?

I would like to do addition and subtraction using timestamps.

Describe the solution you'd like

= 1:8:59 + 8:11:32. The result would be 9:20:31.

This is a simple example with hours, minutes and seconds, but the idea is to extend this to multiple timestamps, support for timezones and milliseconds.

This is different from the time command in which you add or subtract from today as a timestamp, which is an awesome tool.

Describe alternatives you've considered

None that I've considered.

Additional context

Just a question, if it is possible. May I create a PR for this feature request? Do you think what I'm asking is possible within the constraints of this project? Thanks.

And thanks for this plugin. Really looking forward for this feature. It would help me a lot.

@AlfredPianist AlfredPianist added the enhancement New feature or request label Apr 19, 2024
@AlfredPianist AlfredPianist changed the title [feature] [feature] Timestamp calculation (not from today) Apr 19, 2024
@tchar
Copy link
Owner

tchar commented May 27, 2024

Hey @AlfredPianist

You are more than welcome to make a PR for this.

You mentioned that you don't want it under the time command. What do you think about the following?

The = command is for calculations of all sorts. You could add it there, but differentiating between the other calculations would be more challenging. To be more specific, the = command parses the user input differently than time, oct, dec, etc, and it is the most difficult one to update.

I understand that this feature is not exactly similar to the time command, but putting this functionality in time may be easier than putting it in = and would also make more sense.

Looking forward to hearing your thoughts.

Cheers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants