aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/date_time/calculations.rb
Commit message (Collapse)AuthorAgeFilesLines
* added beginning_of_hour support to core_ext calculations for Time and DateTimeMark J. Titorenko2012-05-041-0/+11
|
* AS core_ext refactoringAlexey Gaziev2012-04-291-12/+21
|
* Deprecate DateTime.local_offsetbrainopia2012-01-251-1/+5
|
* Update time zone offset informationbrainopia2012-01-181-1/+1
|
* revert "fixing some tests on ruby 1.9.3 SHA 33f222b"Vishnu Atrai2012-01-071-23/+0
|
* Initial pass at removing dead 1.8.x code from Active Support.José Valim2011-12-201-2/+0
| | | | | | 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.
* fixing some tests on ruby 1.9.3Aaron Patterson2011-03-071-0/+23
|
* refactored Time#<=> and DateTime#<=> by removing unnecessary calls without ↵Diego Carrion2011-03-041-8/+2
| | | | | | losing performance Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* updated Time, Date and DateTime current methods in AS to use Time.zone and ↵Josh Kalderimis2011-02-281-1/+2
| | | | | | not Time.zone_default. [#6410 state:committed]
* Refactor move some date, time and date_time methods to */zones and fixed ↵Santiago Pastorino2010-07-031-0/+1
| | | | some requires
* date_time/calculations.rb needs active_support/core_ext/object/acts_like ↵Xavier Noria2010-01-011-0/+1
| | | | because it uses acts_like?
* Ruby 1.9.2: rational.rb is deprecatedJeremy Kemper2009-11-021-1/+1
|
* Convert DateTime extension modules to class reopensJeremy Kemper2009-03-261-108/+94
|
* Introduce convenience methods past?, today? and future? for Date and Time ↵Clemens Kofler2008-09-141-5/+19
| | | | classes to facilitate Date/Time comparisons.
* Improve documentation coverage and markupXavier Noria2008-05-021-2/+4
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Add #getutc alias for DateTime#utcgbuesing2008-04-121-0/+1
|
* Adding Time and DateTime #compare_with_coercion, which layers behavior on ↵Geoff Buesing2008-01-231-0/+12
| | | | | | #<=> so that any combination of Time, DateTime and ActiveSupport::TimeWithZone instances can be chronologically compared git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8711 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Introducing DateTime #utc, #utc? and #utc_offset, for duck-typing ↵Geoff Buesing2008-01-161-0/+20
| | | | | | compatibility with Time. Closes #10002 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8649 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Cater for DST changes when converting Times to DateTimes. Closes #10068 ↵Michael Koziarski2007-11-051-0/+10
| | | | | | [gbuesing] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8076 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Time, Date and DateTime #advance accept :weeks option. Closes #9866.Jeremy Kemper2007-10-131-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7868 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Time and DateTime#advance accept :hours, :minutes, and :seconds options. ↵Jeremy Kemper2007-10-131-2/+4
| | | | | | Closes #9825. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7866 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Deprecation: remove deprecated :mday option from Time, Date, and ↵Jeremy Kemper2007-09-181-1/+1
| | | | | | DateTime#change. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7508 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix Time#advance bug when trying to advance a year from leap day. Closes ↵Rick Olson2007-08-031-3/+1
| | | | | | #8655 [gbuesing] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7262 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Move common DateTime calculations to Date. Closes #8536.Jeremy Kemper2007-06-011-119/+13
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6921 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Time durations use since instead of + for accuracy. Closes #8513.Jeremy Kemper2007-05-301-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6901 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* DateTime calculations analogous to the Date and Time extensions. Closes #7693.Jeremy Kemper2007-03-041-0/+173
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6303 5ecf4fe2-1ee6-0310-87b1-e25e094e27de