aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/date
Commit message (Collapse)AuthorAgeFilesLines
...
* String quotes and trailing spacesAlexey Gaziev2012-04-291-7/+7
|
* AS core_ext refactoringAlexey Gaziev2012-04-292-16/+41
|
* Adding :last_week, :last_month, and :last_year aliases to Time and DateMatt Bridges2012-02-211-0/+7
| | | | core extensions
* remove date methods that are present in 1.9 rubySergey Nartimov2011-12-251-20/+0
|
* Remove some of the ActiveSupport core extensions related to 1.8.Uģis Ozols2011-12-211-33/+0
|
* Initial pass at removing dead 1.8.x code from Active Support.José Valim2011-12-202-41/+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.
* Convert aliases monday and sunday to methodsVijay Dev2011-11-261-2/+12
| | | | | | | | 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.
* minor doc changesVijay Dev2011-11-261-3/+3
|
* some tweaks to PR#3547. [Closes #3547]Xavier Noria2011-11-251-7/+12
|
* API docstrings updated with default value infogregolsen2011-11-251-3/+3
|
* beginning_of_week extended in both Time and Date so that to return week ↵gregolsen2011-11-251-8/+16
| | | | start based on start day that is monday by default
* updating API docstring so that user can infer default valuegregolsen2011-11-171-2/+2
|
* Allow a Date to be frozen more than once without an error in Ruby 1.8.xBradley Buda2011-06-081-4/+6
|
* Remove extra white spaces on ActiveSupport docs.Sebastian Martinez2011-05-231-1/+1
|
* Merge pull request #227 from farski/masterSantiago Pastorino2011-05-111-3/+3
|\ | | | | Unnecessary redundancy in Time/Date calculations
| * Removed some redundant Time#change time options from beginning_of_ methods ↵Chris Kalafarski2011-03-131-3/+3
| | | | | | | | in Date and Time
* | Better use #remove_possible_method hereSebastian Martinez2011-05-081-2/+3
|/
* updated Time, Date and DateTime current methods in AS to use Time.zone and ↵Josh Kalderimis2011-02-282-5/+5
| | | | | | not Time.zone_default. [#6410 state:committed]
* Add Date#rfc3339 and Date#iso8601 to ASSantiago Pastorino2011-02-131-0/+6
|
* In AS, only inflector/methods is need in proxy_wrappers.rb, as well as date, ↵Josh Kalderimis2011-01-121-1/+1
| | | | | | date_time, and time conversions.rb. This fixes an issue when requiring json and AS saying that i18n is also required. Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* implements weeks_ago and prev_week for Date/DateTime/Time [#5122 ↵Rob Zolkos & Xavier Noria2010-10-161-2/+14
| | | | state:committed]
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-141-2/+2
| | | | 's/[ \t]*$//' -i {} \;)
* itsy bitsy changes to documentationNeeraj Singh2010-07-281-13/+13
|
* Move Date#xmlschema to conversions and add a missing requireSantiago Pastorino2010-07-042-9/+10
|
* Refactor move some date, time and date_time methods to */zones and fixed ↵Santiago Pastorino2010-07-033-19/+23
| | | | some requires
* Date#since, #ago, #beginning_of_day, #end_of_day, #xmlschema return ↵Geoff Buesing2010-06-122-5/+15
| | | | | | TimeWithZone when Time.zone_default is set Signed-off-by: Xavier Noria <fxn@hashref.com>
* removes deprecations of last_(month|year) from master, they will be ↵Xavier Noria2010-05-191-11/+0
| | | | deprecated in 2.3 instead
* defines prev_(month|year) in Date and Time to ease transition to 1.9, and ↵Xavier Noria2010-05-121-5/+16
| | | | deprecates last_(month|year)
* aliases Date#sunday to Date#end_of_week, for symmetry with existing alias ↵Xavier Noria2010-05-091-0/+1
| | | | Date#monday -> Date#beginning_of_week
* Backports Date#>> from 1.9 so that calculations do the right thing around ↵Xavier Noria2010-05-091-0/+18
| | | | | | | | | | the calendar reform Our next_month gives November for some late dates in September of 1582. Related methods, last_*, and in general advance have the same issues. This commit fixes those, see the test suite for expected behavior, which we still run in 1.9 to ensure it matches as we do with other methods defined in Date in 1.9.
* date/conversions needs time/calculations for (utc|local)_timeXavier Noria2010-05-031-0/+1
|
* let Date.yesterday and Date.tomorrow be based on Date.current rather than ↵Xavier Noria2010-05-021-2/+2
| | | | Date.today
* date/calculations.rb needs active_support/core_ext/object/acts_like because ↵Xavier Noria2010-01-011-0/+1
| | | | it uses acts_like?
* Fixes Dependency bug in ActiveSupportYehuda Katz2009-12-202-0/+2
|
* Repair time dependenciesJeremy Kemper2009-11-141-3/+0
|
* Clarify date/time dependenciesJeremy Kemper2009-11-022-0/+2
|
* Duplicating the options hash in Date#advance to prevent modification of the ↵Jay Pignata2009-08-311-0/+1
| | | | | | original [#1133 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Check for date/time methods that moved upstream in 1.9Jeremy Kemper2009-05-071-2/+2
|
* Fix dependencies revealed by testing in isolationJeremy Kemper2009-04-222-0/+4
|
* Convert Date calculations and conversions extension modules to class reopensJeremy Kemper2009-03-282-323/+298
|
* Tease out Object#acts_like? behaviorsJeremy Kemper2009-03-281-3/+2
|
* Convert date extension modules to class reopensJeremy Kemper2009-03-213-42/+40
|
* Merge docrailsPratik Naik2009-03-161-1/+1
|
* Merge docrailsPratik Naik2009-01-181-3/+3
|
* Introduce convenience methods past?, today? and future? for Date and Time ↵Clemens Kofler2008-09-141-9/+24
| | | | classes to facilitate Date/Time comparisons.
* Date#freeze bug doesn't affect Ruby 1.9Jeremy Kemper2008-08-281-7/+11
|
* Date#freeze bug doesn't affect Ruby 1.9Jeremy Kemper2008-08-281-8/+17
|
* Work around frozen Date memoizationJeremy Kemper2008-08-251-0/+16
|
* Fixed Date#end_of_quarter to not blow up on May 31st [#289 state:resolved] ↵David Heinemeier Hansson2008-06-021-1/+1
| | | | (Danger)
* Adding Date.current, which returns Time.zone.today if config.time_zone is ↵gbuesing2008-05-081-0/+5
| | | | set; otherwise returns Date.today. ActionView date_helper uses Date.current to determine locale-appropriate default