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

Time#new(iso8601, in: nil)を追加 #2886

Merged
merged 2 commits into from
May 26, 2024
Merged

Conversation

ham0215
Copy link
Contributor

@ham0215 ham0215 commented May 22, 2024

Ruby 3.2からTime#newはiso8602形式の文字列を受け付けるようになったのでドキュメントを追加しました。

Time.new

ref: https://bugs.ruby-lang.org/issues/18033
pr: ruby/ruby#4825

Added documentation because Time#new accepts strings in iso8602 format since Ruby 3.2.
ref: https://bugs.ruby-lang.org/issues/18033
@ohai
Copy link
Member

ohai commented May 24, 2024

in が無視されない場合の例もあると良いと思います

@ham0215
Copy link
Contributor Author

ham0215 commented May 25, 2024

@ohai
inがない場合とinが無視されない場合のサンプルコードを追加しました!

@ohai ohai merged commit ffa4e71 into rurema:master May 26, 2024
8 checks passed
@ohai
Copy link
Member

ohai commented May 26, 2024

ありがとうございます! マージしました

@ham0215 ham0215 deleted the add-time-new branch May 27, 2024 00:04
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