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

Compare time of a user to self, time for self to a user, or one user to another user #63

Open
KevinNovak opened this issue Dec 31, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@KevinNovak
Copy link
Owner

KevinNovak commented Dec 31, 2020

It would be a great idea to have a command to compare the a compare a specific time of a user to yourself, a specific time for yourself to another user, or from one user to another user.

Currently with the -ft time command this is not possible, since it only shows the current time.

This idea comes from Hyperion_21#1503 (526120327697268736).

Situations:

  • When it is 10pm for me, what time is it for @User?
  • When it is 10pm for @User, what time is it for me?
  • When it is 10pm for @UserOne, what time is it for @UserTwo?

Command Suggestion:
-ft convert me to <@user> <time>
-ft convert <@user> to me <time>
-ft convert <@user> to <@user> <time>

  • "me" could also be "self", or neither and instead require the user the mention their own name, or support both.
  • Might need to use regex to match the "to" format, in the case that the user mentioned has a space in it.
  • How can the be captured by regex? Do we run time parser on the whole string?

Bonus: Support Time Zones as Well:
-ft convert me to America/New_York <time>
-ft convert America/New_York to me <time>
-ft convert America/New_York to America/Chicago <time>

@KevinNovak KevinNovak added the enhancement New feature or request label Dec 31, 2020
@Davi-the-Mudkip
Copy link
Contributor

Nice suggestion. It should be implemented.

@KevinNovak
Copy link
Owner Author

I'm planning on this after Slash commands are added. It would make the format easier

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