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

Add converter for discord-formatted timestamps #102

Merged
merged 4 commits into from
Oct 12, 2021

Conversation

Scotsguy
Copy link
Contributor

@Scotsguy Scotsguy commented Oct 9, 2021

Closes #85

Not bothering with the other time modules for now

@gdude2002 gdude2002 self-assigned this Oct 9, 2021
@gdude2002 gdude2002 added Type: Enhancement Improvements to existing features. hacktoberfest-accepted Pull Request accepted for Hacktoberfest labels Oct 9, 2021
@gdude2002
Copy link
Member

Thanks, I'm happy with this addition. It doesn't quite close #85 as I also intended for this support to be added to the duration converters (for the sake of completeness), but this PR can be merged without that if you'd prefer.

@Scotsguy
Copy link
Contributor Author

Scotsguy commented Oct 9, 2021

How would you expect that to look like? Discord timestamps are, well, timestamps, not durations.

@gdude2002
Copy link
Member

They're not durations, but they do point to a specific point in time - so it'd be a case of getting the delta between "now" and the timestamp as a duration

@gdude2002
Copy link
Member

This looks good overall. Thanks!

🚀

@gdude2002 gdude2002 merged commit ff578b4 into Kord-Extensions:develop Oct 12, 2021
@Scotsguy Scotsguy deleted the timestamp-converter branch October 12, 2021 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted Pull Request accepted for Hacktoberfest Type: Enhancement Improvements to existing features.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants