diff options
author | Andrew White <pixeltrix@users.noreply.github.com> | 2017-03-02 07:57:10 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-02 07:57:10 +0000 |
commit | a815c7c7214d0c45194bc9b097e20f50a2b0aab1 (patch) | |
tree | 19cf5409d5477bd4d0bf416dd8b90d7a2ead0271 /activesupport/CHANGELOG.md | |
parent | 22e33e464c81167633c7d1e5aac3b9dd4bf5fc1f (diff) | |
parent | b5af751508281483845d4323177b0aec98a11880 (diff) | |
download | rails-a815c7c7214d0c45194bc9b097e20f50a2b0aab1.tar.gz rails-a815c7c7214d0c45194bc9b097e20f50a2b0aab1.tar.bz2 rails-a815c7c7214d0c45194bc9b097e20f50a2b0aab1.zip |
Merge pull request #28242 from rails/add-fractional-support-to-datetime-change
Update `DateTime#change` to support usec and nsec
Diffstat (limited to 'activesupport/CHANGELOG.md')
-rw-r--r-- | activesupport/CHANGELOG.md | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/activesupport/CHANGELOG.md b/activesupport/CHANGELOG.md index 0614cdaabd..2999820c42 100644 --- a/activesupport/CHANGELOG.md +++ b/activesupport/CHANGELOG.md @@ -1,3 +1,15 @@ +* Update `DateTime#change` to support `:usec` and `:nsec` options. + + Adding support for these options now allows us to update the `DateTime#end_of` + methods to match the equivalent `Time#end_of` methods, e.g: + + datetime = DateTime.now.end_of_day + datetime.nsec == 999999999 # => true + + Fixes #21424. + + *Dan Moore*, *Andrew White* + * Add `ActiveSupport::Duration#before` and `#after` as aliases for `#until` and `#since` These read more like English and require less mental gymnastics to read and write. @@ -20,7 +32,7 @@ *Robin Dupret* (#28157) * In Core Extensions, make `MarshalWithAutoloading#load` pass through the second, optional - argument for `Marshal#load( source [, proc] )`. This way we don't have to do + argument for `Marshal#load( source [, proc] )`. This way we don't have to do `Marshal.method(:load).super_method.call(source, proc)` just to be able to pass a proc. *Jeff Latz* |