Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | removing stubs. 1.9.3 implements Date.today in C so mocking the return value ↵ | Aaron Patterson | 2011-03-07 | 1 | -9/+4 |
| | | | | of Time.now does nothing | ||||
* | updated Time, Date and DateTime current methods in AS to use Time.zone and ↵ | Josh Kalderimis | 2011-02-28 | 1 | -16/+16 |
| | | | | | | not Time.zone_default. [#6410 state:committed] | ||||
* | Add Date#rfc3339 and Date#iso8601 to AS | Santiago Pastorino | 2011-02-13 | 1 | -0/+10 |
| | |||||
* | implements weeks_ago and prev_week for Date/DateTime/Time [#5122 ↵ | Rob Zolkos & Xavier Noria | 2010-10-16 | 1 | -0/+16 |
| | | | | state:committed] | ||||
* | Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵ | Santiago Pastorino | 2010-08-14 | 1 | -8/+8 |
| | | | | 's/[ \t]*$//' -i {} \;) | ||||
* | Date#since, #ago, #beginning_of_day, #end_of_day, #xmlschema return ↵ | Geoff Buesing | 2010-06-12 | 1 | -1/+50 |
| | | | | | | TimeWithZone when Time.zone_default is set Signed-off-by: Xavier Noria <fxn@hashref.com> | ||||
* | oops, two cancelling errors made a previous test pass, fixing it | Xavier Noria | 2010-06-07 | 1 | -1/+1 |
| | |||||
* | the order in which we apply deltas in Date#advance matters, add test ↵ | Xavier Noria | 2010-06-07 | 1 | -0/+10 |
| | | | | coverage for that | ||||
* | removes deprecations of last_(month|year) from master, they will be ↵ | Xavier Noria | 2010-05-19 | 1 | -8/+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 | -9/+17 |
| | | | | deprecates last_(month|year) | ||||
* | adds calendar reform test coverage for more relevant date calculations | Xavier Noria | 2010-05-09 | 1 | -1/+14 |
| | |||||
* | Backports Date#>> from 1.9 so that calculations do the right thing around ↵ | Xavier Noria | 2010-05-09 | 1 | -0/+27 |
| | | | | | | | | | | 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. | ||||
* | add test coverage for (last|next)_year on leap years | Xavier Noria | 2010-05-08 | 1 | -0/+8 |
| | |||||
* | let Time.time_with_datetime_fallback handle properly years in the range 0..138 | Xavier Noria | 2010-05-05 | 1 | -1/+7 |
| | |||||
* | adds test coverage for Date.current vs Date.today in ↵ | Xavier Noria | 2010-05-03 | 1 | -1/+45 |
| | | | | Date.(yesterday|tomorrow) implementation | ||||
* | revises tests for Date.yesterday and Date.tomorrow | Xavier Noria | 2010-05-02 | 1 | -3/+3 |
| | |||||
* | Consolidate date & time landscape: require 'active_support/time' | Jeremy Kemper | 2009-11-14 | 1 | -1/+1 |
| | |||||
* | Duplicating the options hash in Date#advance to prevent modification of the ↵ | Jay Pignata | 2009-08-31 | 1 | -0/+6 |
| | | | | | | original [#1133 state:resolved] Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | Setting usec (and nsec for Ruby 1.9) on Time#end_of_* methods [#1255 ↵ | Hugo Peixoto | 2009-08-09 | 1 | -1/+1 |
| | | | | | | status:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Explicit test dependencies | Jeremy Kemper | 2009-03-29 | 1 | -0/+1 |
| | |||||
* | Remove obsolete silence_warnings wrappers from TZInfo-dependent tests in ↵ | Levin Alexander | 2009-02-14 | 1 | -7/+5 |
| | | | | ActiveSupport [#1914 state:resolved] | ||||
* | Require mocha >= 0.9.0 for AS tests | Jeremy Kemper | 2008-11-22 | 1 | -36/+32 |
| | |||||
* | Add thorough tests for Time-object #past?, #future? and #today. Fix ↵ | gbuesing | 2008-09-14 | 1 | -11/+19 |
| | | | | TimeWithZone #today? to use #time instead of #utc for date comparison. Update changelog. [#720 state:resolved] | ||||
* | Introduce convenience methods past?, today? and future? for Date and Time ↵ | Clemens Kofler | 2008-09-14 | 1 | -0/+15 |
| | | | | classes to facilitate Date/Time comparisons. | ||||
* | Work around frozen Date memoization | Jeremy Kemper | 2008-08-25 | 1 | -4/+12 |
| | |||||
* | Namespace Inflector, Dependencies, OrderedOptions, and TimeZone under ↵ | Joshua Peek | 2008-06-03 | 1 | -7/+7 |
| | | | | ActiveSupport [#238 state:resolved] | ||||
* | Added tests [#279 state:resolved] (Nicholas Schlueter) | David Heinemeier Hansson | 2008-06-02 | 1 | -0/+4 |
| | |||||
* | Fixed Date#end_of_quarter to not blow up on May 31st [#289 state:resolved] ↵ | David Heinemeier Hansson | 2008-06-02 | 1 | -0/+1 |
| | | | | (Danger) | ||||
* | Adding Date.current, which returns Time.zone.today if config.time_zone is ↵ | gbuesing | 2008-05-08 | 1 | -0/+23 |
| | | | | set; otherwise returns Date.today. ActionView date_helper uses Date.current to determine locale-appropriate default | ||||
* | Adding Time#end_of_day, _quarter, _week, and _year. Closes #9312. | Jeremy Kemper | 2008-02-27 | 1 | -0/+23 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8934 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | with_timezone test helper renamed with_env_tz, to distinguish between ↵ | Geoff Buesing | 2008-01-26 | 1 | -2/+2 |
| | | | | | | setting ENV['TZ'] and setting Time.zone in tests git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8731 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | require abstract_unit directly since test is in load path | Jeremy Kemper | 2008-01-05 | 1 | -1/+1 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8563 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Honor Ruby's default calendar reform setting when creating DateTime objects ↵ | Geoff Buesing | 2007-11-24 | 1 | -0/+2 |
| | | | | | | via ActiveRecord's Time -> DateTime overflow, Time#time_with_datetime_fallback, Time#to_datetime, Date#to_datetime and String#to_datetime. Closes #10201 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8199 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Cater for DST changes when converting Times to DateTimes. Closes #10068 ↵ | Michael Koziarski | 2007-11-05 | 1 | -2/+6 |
| | | | | | | [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 Kemper | 2007-10-13 | 1 | -1/+4 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7868 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Fix Date#years_ago and #years_since from leap days. Closes #9864. | Jeremy Kemper | 2007-10-13 | 1 | -0/+2 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7863 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Refactor Time and Date#months_since and #months_ago to use #advance. Closes ↵ | Jeremy Kemper | 2007-10-13 | 1 | -0/+4 |
| | | | | | | #9863. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7862 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Some platforms include colon in timezone offset, some don't. References #9744. | Jeremy Kemper | 2007-10-03 | 1 | -3/+3 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7733 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Fixed Date#xmlschema for dates outside the range of what can be created with ↵ | David Heinemeier Hansson | 2007-10-01 | 1 | -0/+16 |
| | | | | | | Time (closes #9744) [gbuesing] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7707 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Fixed spelling errors (closes #9706) [tarmo/rmm5t] | David Heinemeier Hansson | 2007-09-28 | 1 | -1/+1 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7666 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Fix Time#advance bug when trying to advance a year from leap day. Closes ↵ | Rick Olson | 2007-08-03 | 1 | -0/+1 |
| | | | | | | #8655 [gbuesing] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7262 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Improve Time and Date test coverage. Closes #8646. | Jeremy Kemper | 2007-06-14 | 1 | -13/+19 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7019 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Add Date#since, ago, beginning_of_day, and end_of_day. Date + seconds works ↵ | Jeremy Kemper | 2007-06-04 | 1 | -0/+16 |
| | | | | | | now. Closes #8575. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6937 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Date.yesterday and .tomorrow. Closes #8571. | Jeremy Kemper | 2007-06-04 | 1 | -0/+8 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6934 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Readable Date and DateTime#inspect. Closes #8570. | Jeremy Kemper | 2007-06-04 | 1 | -0/+5 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6933 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Move common DateTime calculations to Date. Closes #8536. | Jeremy Kemper | 2007-06-01 | 1 | -0/+100 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6921 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Added Date#change (like Time#change) [DHH] | David Heinemeier Hansson | 2007-05-31 | 1 | -0/+5 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6910 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | DateTime#to_time converts to Time unless out of range. Date#to_datetime and ↵ | Jeremy Kemper | 2007-05-30 | 1 | -3/+5 |
| | | | | | | Date#to_s(:rfc822). Closes #8512. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6902 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Date, Time, and DateTime support formatting blocks in addition to strftime ↵ | Jeremy Kemper | 2007-05-25 | 1 | -3/+4 |
| | | | | | | strings. Introduce :long_ordinal format, e.g. 'February 21st, 2005'. Closes #8191. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6844 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | :db format for Date#to_s | Jeremy Kemper | 2007-01-28 | 1 | -0/+1 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6060 5ecf4fe2-1ee6-0310-87b1-e25e094e27de |