aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/date_time_ext_test.rb
Commit message (Expand)AuthorAgeFilesLines
* Fix issue where duration where always rounded up to a second:Edouard CHIN2018-10-121-2/+2
* Move implementation of `before?` and `after?` to `DateAndTime::Calculations`bogdanvlviv2018-03-311-12/+0
* Add `before?` and `after?` methods to date and time classesNick Holden2018-03-061-0/+12
* Remove extra whitespaceDaniel Colson2018-01-251-14/+14
* Use assert_predicate and assert_not_predicateDaniel Colson2018-01-251-3/+3
* Enable `Layout/LeadingCommentSpace` to not allow cosmetic changes in the futureRyuta Kamizono2017-12-141-1/+1
* Refactor Date/Time next_occurring and prev_occurringT.J. Schuck2017-11-281-22/+0
* Allows pass argument for `Time#prev_year` and `Time#next_year`.bogdanvlviv2017-10-241-4/+0
* Allows pass argument for `Time#prev_month` and `Time#next_month`bogdanvlviv2017-10-241-4/+0
* [Active Support] `rubocop -a --only Layout/EmptyLineAfterMagicComment`Koichi ITO2017-07-111-0/+1
* Use frozen-string-literal in ActiveSupportKir Shatrov2017-07-091-0/+1
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-021-1/+0
* Enforce frozen string in RubocopKir Shatrov2017-07-011-0/+1
* Add next occur and previous occurred day of week API (#26600)Shota Iguchi2017-05-301-0/+22
* Add additional options to time `change` methodsAndrew White2017-04-141-0/+3
* Update `DateTime#change` to support usec and nsecAndrew White2017-03-021-11/+18
* Add tests for `blank?`kenta-s2017-02-061-0/+4
* "Use assert_nil if expecting nil. This will fail in minitest 6."Akira Matsuda2016-12-251-1/+1
* Add more rubocop rules about whitespacesRafael Mendonça França2016-10-291-100/+100
* modernizes hash syntax in activesupportXavier Noria2016-08-061-29/+29
* applies new string literal convention in activesupport/testXavier Noria2016-08-061-21/+21
* Fix tests when preserving timezonesAndrew White2016-05-051-2/+8
* Make getlocal and getutc always return instances of TimeAndrew White2016-04-231-1/+12
* Add DateTime#subsecAndrew White2016-04-231-0/+5
* Add compatibility for Ruby 2.4 `to_time` changesAndrew White2016-04-231-0/+8
* Call super instead of returning nil for DateTime#<=>Andrew White2016-04-031-0/+18
* Adding test to verify the last week when the year is leapChirag Aggarwal2016-02-201-0/+4
* Merge pull request #18365 from pocke/fix_datatime_compareAaron Patterson2015-06-121-0/+7
|\
| * DateTime#<=> return nil when compare to the invalid String as Time.pocke2015-01-061-0/+7
* | Removed mocha stubbing in active_supportRonak Jangir2015-06-071-30/+38
|/
* `DateTime#to_f` now preserves fractional seconds.John Paul Ashenfelter2014-07-021-0/+1
* Extract out with_env_tz helper method.Zuhao Wan2014-06-181-8/+2
* Added partial days support to `DateTime`'s `advance` method.Shay Davidson2013-08-301-0/+6
* Merge pull request #10879 from makaroni4/masterAndrew White2013-07-291-0/+4
|\
| * Added Time#middle_of_dayAnatoli Makarevich2013-07-281-0/+4
* | Fix handling of offsets with Time#to_s(:iso8601)Andrew White2013-07-291-0/+6
* | Keep sub-second resolution when wrapping a DateTime valueAndrew White2013-06-131-0/+10
|/
* Squashed commit of the following:Aaron Patterson2013-05-031-7/+0
* Keep second fraction when DateTime#change is called.Chris Baynes2013-02-251-0/+3
* Added beginning_of_minute support to core_ext calculations for Time and DateTimeGagan Awhad2013-02-211-0/+8
* Test that a DateTime acts_like_dateAkira Matsuda2013-01-231-0/+4
* Standardise the return value of `to_time`Andrew White2013-01-211-5/+8
* Remove assert_nothing_raisedRafael Mendonça França2013-01-031-4/+2
* Added ability to compare date/time with infinitybUg2013-01-041-0/+9
* Deprecate obsolete Time to DateTime fallback methodsAndrew White2012-12-111-1/+1
* Add #seconds_until_end_of_day to DateTime and TimeOlek Janiszewski2012-11-291-0/+8
* Refactored common date and time calculations.Pan Thomakos2012-08-041-136/+7
* Improve performance of DateTime#seconds_since_unix_epochAndrew White2012-07-021-0/+1
* Add prev_quarter and next_quarter method in Time/Date/DateTimeparanoiase Kang2012-06-201-0/+12
* added beginning_of_hour support to core_ext calculations for Time and DateTimeMark J. Titorenko2012-05-041-0/+8