Skip to content

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

@KevinNovak

Description

@KevinNovak

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions