Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Hash Syntax changes to 1.9 format | AvnerCohen | 2012-10-20 | 1 | -1/+1 | |
| | ||||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-09-21 | 1 | -7/+10 | |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: actionmailer/lib/action_mailer/base.rb activesupport/lib/active_support/configurable.rb activesupport/lib/active_support/core_ext/module/deprecation.rb guides/source/action_controller_overview.md guides/source/active_support_core_extensions.md guides/source/ajax_on_rails.textile guides/source/association_basics.textile guides/source/upgrading_ruby_on_rails.md While resolving conflicts, I have chosen to ignore changes done in docrails at some places - these will be most likely 1.9 hash syntax changes. | |||||
| * | update some AS code examples to 1.9 hash syntax [ci skip] | Francesco Rodriguez | 2012-09-12 | 1 | -7/+10 | |
| | | ||||||
* | | Date.beginning_of_week thread local and beginning_of_week application config ↵ | gregolsen | 2012-09-18 | 1 | -2/+3 | |
|/ | | | | option added (default is Monday) | |||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2012-09-01 | 1 | -2/+7 | |
|\ | ||||||
| * | Expand documentation for change() method in Time, Date, and DateTime | Jeff Shantz | 2012-08-29 | 1 | -2/+7 | |
| | | ||||||
* | | Refactored common date and time calculations. | Pan Thomakos | 2012-08-04 | 1 | -198/+3 | |
|/ | | | | | | | | * 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. | |||||
* | adds a missing require [fixes #6896] | Xavier Noria | 2012-07-15 | 1 | -0/+1 | |
| | | | | | This file uses Time.zone, which is defined in active_support/core_ext/time/zones.rb. | |||||
* | Make Time#change work with offsets other than UTC or local | Andrew White | 2012-07-01 | 1 | -10/+15 | |
| | | | | | Use Time.new to create times where the current offset is not zero or not in the local time zone - closes #4847 and #6651. | |||||
* | Add missing require. | Rhett Sutphin | 2012-06-25 | 1 | -0/+1 | |
| | | | | | | | | If you selectively require core_exts (e.g., require 'active_support/core_ext/string'), it is possible for 'active_support/core_ext/time/calculations' to be required when `ActiveSupport::TimeWithZone` is not available. If this happens, the next call to Time.=== will fail with a NameError. | |||||
* | Add prev_quarter and next_quarter method in Time/Date/DateTime | paranoiase Kang | 2012-06-20 | 1 | -0/+11 | |
| | ||||||
* | respect nsec in TimeWithZone | Vasiliy Ermolovich + Sergey Nartimov | 2012-05-18 | 1 | -4/+4 | |
| | | | | | | | | | | | when we pass fractional usec to Time methods we should use Rational instead of Float because of accuracy problem Time.local(2011,6,12,23,59,59,999999.999).nsec # => 999999998 Time.local(2011,6,12,23,59,59,Rational(999999999, 1000)).nsec # => 999999999 | |||||
* | added beginning_of_hour support to core_ext calculations for Time and DateTime | Mark J. Titorenko | 2012-05-04 | 1 | -0/+15 | |
| | ||||||
* | AS core_ext refactoring pt.2 | Alexey Gaziev | 2012-04-29 | 1 | -2/+5 | |
| | ||||||
* | AS core_ext refactoring | Alexey Gaziev | 2012-04-29 | 1 | -21/+74 | |
| | ||||||
* | Remove circular require of time/zones | Oscar Del Ben | 2012-04-21 | 1 | -1/+0 | |
| | ||||||
* | Merge pull request #4284 from mattdbridges/time_calculation_aliases | Xavier Noria | 2012-02-28 | 1 | -0/+3 | |
|\ | | | | | Added aliases for prev_year, prev_month, and prev_week in Time and Date calculations | |||||
| * | Adding :last_week, :last_month, and :last_year aliases to Time and Date | Matt Bridges | 2012-02-21 | 1 | -0/+3 | |
| | | | | | | | | core extensions | |||||
* | | Update Time#change docs to reflect the options it uses | Eric Oestrich | 2012-02-17 | 1 | -1/+1 | |
| | | | | | | [ci skip] | |||||
* | | Optional start_day argument for Time#all_week. | kennyj | 2012-02-06 | 1 | -3/+3 | |
|/ | | | | Closes #4883 | |||||
* | Nano seconds fraction of time is copied properly in Time#advance | Pawel Pierzchala | 2012-01-05 | 1 | -1/+1 | |
| | | | | | | When day, month or year was passed, advance created a new time ignoring previous nsec fraction. Now nsec is passed through usec as a Rational number. | |||||
* | Adds Time#sunday method | Vijay Dev | 2011-11-26 | 1 | -0/+6 | |
| | ||||||
* | Convert aliases monday and sunday to methods | Vijay Dev | 2011-11-26 | 1 | -1/+6 | |
| | | | | | | | | 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. | |||||
* | API docstrings updated with default value info | gregolsen | 2011-11-25 | 1 | -3/+3 | |
| | ||||||
* | beginning_of_week extended in both Time and Date so that to return week ↵ | gregolsen | 2011-11-25 | 1 | -8/+16 | |
| | | | | start based on start day that is monday by default | |||||
* | Merge pull request #3725 from marcandre/twz_eql | Yehuda Katz | 2011-11-22 | 1 | -0/+10 | |
|\ | | | | | Fix inconsistencies with Time{WithZone}#{hash,eql?} | |||||
| * | Fix inconsistencies with Time{WithZone}#{hash,eql?} | Marc-Andre Lafortune | 2011-11-22 | 1 | -0/+10 | |
| | | ||||||
* | | updating API docstring so that user can infer default value | gregolsen | 2011-11-17 | 1 | -2/+2 | |
|/ | ||||||
* | Edited activesupport/lib/active_support/core_ext/time/calculations.rb via GitHub | Jeremy Evans | 2011-09-01 | 1 | -1/+1 | |
| | ||||||
* | Fix AR test suite error under Rubinius 2.0 | Guillermo Iguaran | 2011-08-05 | 1 | -0/+1 | |
| | ||||||
* | Rename Time#whole_* to Time#all_* [thanks Pratik!] | David Heinemeier Hansson | 2011-06-13 | 1 | -5/+5 | |
| | ||||||
* | Added Time#whole_day/week/quarter/year as a way of generating ranges ↵ | David Heinemeier Hansson | 2011-06-13 | 1 | -1/+26 | |
| | | | | (example: Event.where(created_at: Time.now.whole_week)) [DHH] | |||||
* | add some missing requires for AS core_ext/numeric/time. Closes #1038 | Josh Kalderimis | 2011-05-18 | 1 | -0/+1 | |
| | ||||||
* | Removed some redundant Time#change time options from beginning_of_ methods ↵ | Chris Kalafarski | 2011-03-13 | 1 | -3/+3 | |
| | | | | in Date and Time | |||||
* | refactored Time#<=> and DateTime#<=> by removing unnecessary calls without ↵ | Diego Carrion | 2011-03-04 | 1 | -11/+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 Kalderimis | 2011-02-28 | 1 | -2/+2 | |
| | | | | | | not Time.zone_default. [#6410 state:committed] | |||||
* | implements weeks_ago and prev_week for Date/DateTime/Time [#5122 ↵ | Rob Zolkos & Xavier Noria | 2010-10-16 | 1 | -1/+11 | |
| | | | | state:committed] | |||||
* | Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵ | Santiago Pastorino | 2010-08-14 | 1 | -2/+2 | |
| | | | | 's/[ \t]*$//' -i {} \;) | |||||
* | Refactor move some date, time and date_time methods to */zones and fixed ↵ | Santiago Pastorino | 2010-07-03 | 1 | -0/+5 | |
| | | | | some requires | |||||
* | removes deprecations of last_(month|year) from master, they will be ↵ | Xavier Noria | 2010-05-19 | 1 | -11/+0 | |
| | | | | deprecated in 2.3 instead | |||||
* | defines prev_(month|year) in Date and Time to ease transition to 1.9, and ↵ | Xavier Noria | 2010-05-12 | 1 | -2/+12 | |
| | | | | deprecates last_(month|year) | |||||
* | let Time.time_with_datetime_fallback handle properly years in the range 0..138 | Xavier Noria | 2010-05-05 | 1 | -3/+5 | |
| | ||||||
* | Time#- with a DateTime argument behaves the same as with a Time argument, ↵ | Geoff Buesing | 2010-01-27 | 1 | -1/+1 | |
| | | | | i.e. returns the difference between self and arg as a Float [#3476 status:resolved] | |||||
* | Missing acts_like dependency | Yehuda Katz | 2009-12-20 | 1 | -0/+1 | |
| | ||||||
* | Ruby 1.9: fix Time#beginning_of_day inaccuracy due to subtracting a Float | Jeremy Kemper | 2009-08-22 | 1 | -1/+2 | |
| | ||||||
* | Setting usec (and nsec for Ruby 1.9) on Time#end_of_* methods [#1255 ↵ | Hugo Peixoto | 2009-08-09 | 1 | -8/+8 | |
| | | | | | | status:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | Merge branch 'master' into cherry | Jeremy Kemper | 2009-04-20 | 1 | -11/+3 | |
|\ | | | | | | | | | | | | | | | | | | | | | Conflicts: activesupport/CHANGELOG activesupport/lib/active_support/core_ext/class/delegating_attributes.rb activesupport/lib/active_support/core_ext/hash/conversions.rb activesupport/lib/active_support/core_ext/module/attribute_accessors.rb activesupport/lib/active_support/core_ext/string/multibyte.rb activesupport/lib/active_support/core_ext/time/calculations.rb activesupport/lib/active_support/deprecation.rb | |||||
| * | Time.local instances: Adding 24.hours across the DST boundary adds 24 hours ↵ | Michael Curtis | 2009-03-29 | 1 | -11/+3 | |
| | | | | | | | | instead of one day [#2066 state:resolved] | |||||
* | | Explicit dependency on Date calculations extensions | Jeremy Kemper | 2009-03-28 | 1 | -0/+1 | |
| | | ||||||
* | | Convert Time extension modules to class reopens | Jeremy Kemper | 2009-03-26 | 1 | -298/+281 | |
|/ |