-
-
Notifications
You must be signed in to change notification settings - Fork 387
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
Where should Time#to_date
and Time#to_datetime
be?
#1146
Comments
How about |
Isn't the latter |
Although Time#to_date and Time#to_datetime are defined in Time, they belong to the date library and should be placed in the corresponding locations for each class. Fix ruby#1146.
Although `Time#to_date` and `Time#to_datetime` are defined in `Time`, they belong to the "date" library and should be placed in the corresponding locations for each class. Fix ruby#1146.
No, because there is no |
Ah but there is already |
Probably we should have |
Currently, "specs" of these methods are placed under ruby/library/time.
But these are defined by the "date" library, which just extends
Time
.It doesn't look the right place.
The text was updated successfully, but these errors were encountered: