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 Time converter to CSV::Converters #313

Merged
merged 1 commit into from
Aug 21, 2024
Merged

Conversation

bdewater
Copy link
Contributor

Ruby recommends working with Time objects, unless you have a good reason to use DateTime: https://ruby-doc.org/stdlib-2.5.0/libdoc/date/rdoc/DateTime.html#class-DateTime-label-When+should+you+use+DateTime+and+when+should+you+use+Time-3F

This commit adds the missing converter for the common modern use case.

test/csv/test_data_converters.rb Outdated Show resolved Hide resolved
doc/csv/recipes/parsing.rdoc Outdated Show resolved Hide resolved
Ruby recommends working with Time objects, unless
you have a good reason to use DateTime:
https://ruby-doc.org/stdlib-2.5.0/libdoc/date/rdoc/DateTime.html#class-DateTime-label-When+should+you+use+DateTime+and+when+should+you+use+Time-3F

This commit adds the missing converter for the
common modern use case.
@bdewater
Copy link
Contributor Author

Addressed PR feedback and the CI failures on Ruby 2.5 and 2.6.

@kou kou merged commit 189851d into ruby:master Aug 21, 2024
46 checks passed
@kou
Copy link
Member

kou commented Aug 21, 2024

Thanks.

@bdewater bdewater deleted the time-converter branch August 21, 2024 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants