aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/duration_test.rb
diff options
context:
space:
mode:
authorAndrew White <andrew.white@unboxed.co>2017-03-01 18:13:15 +0000
committerAndrew White <andrew.white@unboxed.co>2017-03-02 06:02:41 +0000
commitb5af751508281483845d4323177b0aec98a11880 (patch)
tree56f4a6c7af3a0ed4934e89dbfc73e55fadbdf314 /activesupport/test/core_ext/duration_test.rb
parentb61a56541aecd7ac685d4f19d943177a3f1b465a (diff)
downloadrails-b5af751508281483845d4323177b0aec98a11880.tar.gz
rails-b5af751508281483845d4323177b0aec98a11880.tar.bz2
rails-b5af751508281483845d4323177b0aec98a11880.zip
Update `DateTime#change` to support usec and nsec
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.
Diffstat (limited to 'activesupport/test/core_ext/duration_test.rb')
0 files changed, 0 insertions, 0 deletions