1. 07 3月, 2018 1 次提交
    • N
      Add `before?` and `after?` methods to date and time classes · 20fa0d92
      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.
      20fa0d92
  2. 21 10月, 2017 1 次提交
  3. 11 7月, 2017 1 次提交
  4. 09 7月, 2017 1 次提交
  5. 02 7月, 2017 1 次提交
  6. 01 7月, 2017 2 次提交
  7. 05 1月, 2017 1 次提交
  8. 07 8月, 2016 2 次提交
  9. 29 9月, 2015 1 次提交
  10. 29 5月, 2015 1 次提交
  11. 04 5月, 2015 1 次提交
  12. 18 8月, 2013 1 次提交
  13. 29 7月, 2013 1 次提交
  14. 28 7月, 2013 1 次提交
  15. 04 6月, 2013 1 次提交
  16. 03 6月, 2013 1 次提交
  17. 08 1月, 2013 1 次提交
  18. 11 12月, 2012 2 次提交
    • A
      Deprecate Date#to_time_in_current_zone · 224d82ee
      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.
      224d82ee
    • A
      Add missing at_end_of_* aliases · 68169781
      Andrew White 提交于
      68169781
  19. 07 11月, 2012 1 次提交
  20. 09 10月, 2012 1 次提交
  21. 18 9月, 2012 1 次提交
  22. 13 9月, 2012 1 次提交
  23. 02 9月, 2012 1 次提交
  24. 30 8月, 2012 1 次提交
  25. 05 8月, 2012 1 次提交
    • P
      Refactored common date and time calculations. · b530fd10
      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.
      b530fd10
  26. 20 6月, 2012 1 次提交
  27. 25 5月, 2012 1 次提交
  28. 14 5月, 2012 1 次提交
  29. 29 4月, 2012 1 次提交
  30. 22 2月, 2012 1 次提交
  31. 26 12月, 2011 1 次提交
  32. 21 12月, 2011 1 次提交
  33. 27 11月, 2011 2 次提交
    • V
      Convert aliases monday and sunday to methods · a8f2860d
      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.
      a8f2860d
    • V
      minor doc changes · 99ff8fda
      Vijay Dev 提交于
      99ff8fda
  34. 26 11月, 2011 3 次提交