- 07 3月, 2018 1 次提交
-
-
由 Nick Holden 提交于
Equality comparisons between dates and times can take some extra time to comprehend. I tend to think of a date or time as "before" or "after" another date or time, but I naturally read `<` and `>` as "less than" and "greater than." This change seeks to make date/time comparisons more human readable.
-
- 21 10月, 2017 1 次提交
-
-
由 Akira Matsuda 提交于
This basically reverts 8da30ad6
-
- 11 7月, 2017 1 次提交
-
-
由 Koichi ITO 提交于
-
- 09 7月, 2017 1 次提交
-
-
由 Kir Shatrov 提交于
-
- 02 7月, 2017 1 次提交
-
-
由 Matthew Draper 提交于
This reverts commit 3420a145, reversing changes made to afb66a5a.
-
- 01 7月, 2017 2 次提交
-
-
由 Akira Matsuda 提交于
-
由 Kir Shatrov 提交于
-
- 05 1月, 2017 1 次提交
-
-
由 Akira Matsuda 提交于
Actually, private methods cannot be called with `self.`, so it's not just redundant, it's a bad habit in Ruby
-
- 07 8月, 2016 2 次提交
-
-
由 Xavier Noria 提交于
-
由 Xavier Noria 提交于
The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
-
- 29 9月, 2015 1 次提交
-
-
由 Prakash Laxkar 提交于
-
- 29 5月, 2015 1 次提交
-
-
由 Roque Pinel 提交于
-
- 04 5月, 2015 1 次提交
-
-
由 Pablo Herrero 提交于
-
- 18 8月, 2013 1 次提交
-
- 29 7月, 2013 1 次提交
-
-
由 Anatoli Makarevich 提交于
Added middle_of_day method to Date and DateTime
-
- 28 7月, 2013 1 次提交
-
-
由 Pablo Cantero 提交于
array
-
- 04 6月, 2013 1 次提交
-
-
由 David Heinemeier Hansson 提交于
The behavior we had in place in rc1 was actually to convert to DateTime and use <=> from there. Restore that.
-
- 03 6月, 2013 1 次提交
-
-
由 David Heinemeier Hansson 提交于
-
- 08 1月, 2013 1 次提交
-
-
由 Carlos Antonio da Silva 提交于
These warnings were actually a bug in Ruby 2.0, the accessors should not be raising such warnings, they are only meant for ivars. - Revert "fix warnings in Ruby 2.0" This reverts commit 26702a6d. - Revert "Merge pull request #8282 from arunagw/warning_removed_for_ruby2" This reverts commit f63d6544, reversing changes made to 3a890681.
-
- 11 12月, 2012 2 次提交
-
-
由 Andrew White 提交于
The to_time_in_current_zone method doesn't match the naming of the methods for converting to ActiveSupport::TimeWithZone on Time and DateTime. Since DateTime inherits from Date that has led to confusion with some users using the to_time_in_current_zone method with DateTime instances and having the time part dropped and the UTC offset lost. This commit fixes this by deprecating the old method and adding a new in_time_zone method which matches the naming for DateTime and Time. This should prevent accidently dropping times and UTC offsets when converting DateTime instances to ActiveSupport::TimeWithZone.
-
由 Andrew White 提交于
-
- 07 11月, 2012 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 09 10月, 2012 1 次提交
-
-
由 Xavier Noria 提交于
-
- 18 9月, 2012 1 次提交
-
-
由 gregolsen 提交于
Date.beginning_of_week thread local and beginning_of_week application config option added (default is Monday)
-
- 13 9月, 2012 1 次提交
-
-
由 Francesco Rodriguez 提交于
-
- 02 9月, 2012 1 次提交
-
-
由 Vijay Dev 提交于
-
- 30 8月, 2012 1 次提交
-
-
由 Jeff Shantz 提交于
-
- 05 8月, 2012 1 次提交
-
-
由 Pan Thomakos 提交于
* Added the `DateAndTime::Calculations` module that is included in Time and Date. It houses common calculations to reduce duplicated code. * Simplified and cleaned-up the calculation code. * Removed duplication in tests by adding a behavior module for shared tests. I also added some missing tests.
-
- 20 6月, 2012 1 次提交
-
-
由 paranoiase Kang 提交于
-
- 25 5月, 2012 1 次提交
-
-
由 Alexey Vakhov 提交于
Unnecessary peace of text was injected at 507da04a by mistake.
-
- 14 5月, 2012 1 次提交
-
-
由 Francesco Rodriguez 提交于
-
- 29 4月, 2012 1 次提交
-
-
由 Alexey Gaziev 提交于
-
- 22 2月, 2012 1 次提交
-
-
由 Matt Bridges 提交于
core extensions
-
- 26 12月, 2011 1 次提交
-
-
由 Sergey Nartimov 提交于
-
- 21 12月, 2011 1 次提交
-
-
由 José Valim 提交于
There are a bunch of other implicit branches that adds 1.8.x specific code that still needs to be removed. Pull requests for those cases are welcome.
-
- 27 11月, 2011 2 次提交
-
-
由 Vijay Dev 提交于
A recent change to beginning_of_week and end_of_week added an argument that can be used to specify the week's starting day as a symbol. Now these methods were aliased as monday and sunday respectively which as a consequence of the argument addition, made calls like obj.monday(:sunday) possible. This commit makes them methods on their own.
-
由 Vijay Dev 提交于
-
- 26 11月, 2011 3 次提交
-
-
由 Xavier Noria 提交于
-
由 gregolsen 提交于
-
由 gregolsen 提交于
beginning_of_week extended in both Time and Date so that to return week start based on start day that is monday by default
-