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

chore(@toss/date): use relational operators to compare dates #471

Closed
wants to merge 1 commit into from

Conversation

gunhoflash
Copy link
Contributor

Overview

Use relational operators to compare dates.

From issue #463

PR Checklist

  • I read and included theses actions below
  1. I have read the Contributing Guide
  2. I have written documents and tests, if needed.

Copy link

vercel bot commented Apr 28, 2024

@gunhoflash is attempting to deploy a commit to the Toss Team on Vercel.

A member of the Team first needs to authorize it.

@raon0211
Copy link
Collaborator

Thanks for your contribution!

While it is true that dates can be compared with relational operators, it is because dates are implicitly converted numbers before they are being compared.

Personally, I prefer to use more explicit functions to compare dates; this is why we are using functions from date-fns.

Closing the pull request for this reason. But we appreciate your pull request!

@raon0211 raon0211 closed this May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants