Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Revert "Replace use of alias chains with prepend at core_ext/date and ↵ | Roque Pinel | 2015-05-29 | 1 | -23/+0 |
| | | | | core_ext/time" | ||||
* | Merge pull request #19878 from pabloh/replace_alias_chains_with_prepend | Rafael Mendonça França | 2015-05-28 | 1 | -0/+23 |
|\ | | | | | Replace use of alias chains with prepend at core_ext/date and core_ext/time | ||||
| * | Replace use of alias chains with prepend at core_ext/date | Pablo Herrero | 2015-05-04 | 1 | -0/+23 |
| | | |||||
* | | Merge pull request #20049 from iamvery/patch-1 | Yves Senn | 2015-05-07 | 1 | -1/+13 |
|\ \ | |/ |/| | | | Amend `next_week` documentation [ci skip] | ||||
| * | Add examples of Date and Time `next_week` usage | Jay Hayes | 2015-05-07 | 1 | -0/+7 |
|/ | | | | [skip ci] | ||||
* | Use Ruby's #include? to avoid relying on AS extension | Carlos Antonio da Silva | 2015-01-06 | 1 | -1/+1 |
| | | | | | | | | The build has failed when running the date/time ext tests in isolation due to the missing extension, so better than adding a require is using just Ruby in this case. https://travis-ci.org/rails/rails/jobs/46107954#L1077 | ||||
* | Add #prev_day and #next_day as counterparts to #yesterday and #tomorrow for ↵ | George Claghorn | 2015-01-06 | 1 | -6/+16 |
| | | | | Date, Time, and DateTime | ||||
* | Add same_time option to #prev_week and #next_week for Date, Time, and DateTime | George Claghorn | 2015-01-06 | 1 | -17/+22 |
| | |||||
* | Add #on_weekend?, #next_weekday, and #prev_weekday methods to Date, Time, ↵ | George Claghorn | 2015-01-06 | 1 | -0/+25 |
| | | | | | | | | | | | | | and DateTime `#on_weekend?` returns true if the receiving date/time falls on a Saturday or Sunday. `#next_weekday` returns a new date/time representing the next day that does not fall on a Saturday or Sunday. `#prev_weekday` returns a new date/time representing the previous day that does not fall on a Saturday or Sunday. | ||||
* | Added Date#all_week/month/quarter/year for generating date ranges | Dimko | 2013-12-03 | 1 | -0/+21 |
| | |||||
* | No need to use blocks here | Andrew White | 2013-08-04 | 1 | -11/+9 |
| | |||||
* | Refactor Date, Time, DateTime timezone methods | Gilad Zohari | 2013-08-01 | 1 | -0/+41 |
| | | | | | | Similar implementations of #in_time_zone exists for Date, Time and DateTime so method is extracted into its own module. Also some logic is extracted into private method. | ||||
* | formatting | Jon Rowe | 2013-04-26 | 1 | -1/+1 |
| | |||||
* | better document `next_week` functionaility closes #9568 | Jon Rowe | 2013-04-26 | 1 | -5/+5 |
| | |||||
* | Fixed Typo | Prathamesh Sonpatki | 2013-04-04 | 1 | -1/+1 |
| | |||||
* | Date.beginning_of_week thread local and beginning_of_week application config ↵ | gregolsen | 2012-09-18 | 1 | -15/+34 |
| | | | | option added (default is Monday) | ||||
* | Remove unused variable | Rafael Mendonça França | 2012-08-26 | 1 | -1/+1 |
| | |||||
* | Refactored common date and time calculations. | Pan Thomakos | 2012-08-04 | 1 | -0/+213 |
* 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. |