Skip to content

Introduce Time#am? and Time#pm? #14133

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

MatheusRich
Copy link
Contributor

No description provided.

Copy link

launchable-app bot commented Aug 6, 2025

Tests Failed

✖️no tests failed ✔️62213 tests passed(45 flakes)

@nobu
Copy link
Member

nobu commented Aug 13, 2025

It would be able to implement in timev.rb.

@MatheusRich
Copy link
Contributor Author

@nobu I can do that. Are there any differences/advantages in doing so? Just curious, so I can apply this on future pull requests.

@nobu
Copy link
Member

nobu commented Aug 17, 2025

@nobu I can do that. Are there any differences/advantages in doing so? Just curious, so I can apply this on future pull requests.

No big difference in this case.
It is just possible.

It is said simpler and that JIT will be able to optimize such methods.
The current implementations look simple enough though.

One more difference is documentation.
C source code must be ASCII only, and comments can’t contain */.
Neither of them applies here.

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