Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵ | Santiago Pastorino | 2010-08-14 | 1 | -1/+1 |
| | | | | 's/[ \t]*$//' -i {} \;) | ||||
* | adds test coverage to ensure DateTime#advance processes first the date ↵ | Xavier Noria | 2010-08-05 | 1 | -12/+19 |
| | | | | deltas, and then the time deltas | ||||
* | fix conditions when DateTime#to_date and DateTime#xmlschema methods are defined | Raimonds Simanovskis | 2010-06-04 | 1 | -2/+2 |
| | |||||
* | Final iteration of use better testing methods | Neeraj Singh | 2010-05-19 | 1 | -2/+2 |
| | | | | | | [#4652 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | defines prev_(month|year) in Date and Time to ease transition to 1.9, and ↵ | Xavier Noria | 2010-05-12 | 1 | -4/+4 |
| | | | | deprecates last_(month|year) | ||||
* | let Time.time_with_datetime_fallback handle properly years in the range 0..138 | Xavier Noria | 2010-05-05 | 1 | -0/+5 |
| | |||||
* | Added #to_i to DateTime in ActiveSupport so #to_yaml works correctly on ↵ | Serguei Filimonov | 2009-12-15 | 1 | -0/+4 |
| | | | | ActiveRecord models with DateTime attributes. | ||||
* | Consolidate date & time landscape: require 'active_support/time' | Jeremy Kemper | 2009-11-14 | 1 | -1/+1 |
| | |||||
* | Fix dependencies revealed by testing in isolation | Jeremy Kemper | 2009-04-22 | 1 | -0/+1 |
| | |||||
* | Require mocha >= 0.9.0 for AS tests | Jeremy Kemper | 2008-11-22 | 1 | -58/+54 |
| | |||||
* | Add thorough tests for Time-object #past?, #future? and #today. Fix ↵ | gbuesing | 2008-09-14 | 1 | -10/+62 |
| | | | | 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/+23 |
| | | | | classes to facilitate Date/Time comparisons. | ||||
* | Namespace Inflector, Dependencies, OrderedOptions, and TimeZone under ↵ | Joshua Peek | 2008-06-03 | 1 | -12/+12 |
| | | | | ActiveSupport [#238 state:resolved] | ||||
* | Add #getutc alias for DateTime#utc | gbuesing | 2008-04-12 | 1 | -0/+1 |
| | |||||
* | Play nice with 1.9's DateTime#to_s | Jeremy Kemper | 2008-03-29 | 1 | -1/+1 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9137 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Adding TimeZone#at and DateTime#to_f | Geoff Buesing | 2008-03-17 | 1 | -0/+5 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9042 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | with_timezone test helper renamed with_env_tz, to distinguish between ↵ | Geoff Buesing | 2008-01-26 | 1 | -3/+3 |
| | | | | | | 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 | ||||
* | Adding UTC zone to TimeZone; TimeWithZone no longer has to fake UTC zone ↵ | Geoff Buesing | 2008-01-25 | 1 | -3/+3 |
| | | | | | | with nil git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8720 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Adding Time and DateTime #compare_with_coercion, which layers behavior on ↵ | Geoff Buesing | 2008-01-23 | 1 | -0/+18 |
| | | | | | | #<=> 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 | ||||
* | Adding Time and DateTime #formatted_offset, for outputting +HH:MM utc offset ↵ | Geoff Buesing | 2008-01-23 | 1 | -0/+12 |
| | | | | | | strings with cross-platform consistency git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8698 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Introducing DateTime #utc, #utc? and #utc_offset, for duck-typing ↵ | Geoff Buesing | 2008-01-16 | 1 | -0/+22 |
| | | | | | | compatibility with Time. Closes #10002 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8649 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 | ||||
* | Ruby 1.9 compat: normalize date and time xmlschema to match Ruby's ↵ | Jeremy Kemper | 2007-12-15 | 1 | -4/+3 |
| | | | | | | formatting [chuyeow] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8398 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Change Time and DateTime #end_of_month to return last second of month ↵ | Geoff Buesing | 2007-11-24 | 1 | -4/+3 |
| | | | | | | instead of beginning of last day of month. Closes #10200 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8198 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Cater for DST changes when converting Times to DateTimes. Closes #10068 ↵ | Michael Koziarski | 2007-11-05 | 1 | -1/+19 |
| | | | | | | [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 | ||||
* | Time and DateTime#advance accept :hours, :minutes, and :seconds options. ↵ | Jeremy Kemper | 2007-10-13 | 1 | -1/+9 |
| | | | | | | Closes #9825. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7866 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 | -2/+7 |
| | | | | | | 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 | ||||
* | Date/Time/DateTime Ruby 1.9 compat | Jeremy Kemper | 2007-09-27 | 1 | -0/+1 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7647 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 | ||||
* | Oh please. References #8646. | Jeremy Kemper | 2007-06-14 | 1 | -1/+1 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7021 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Maybe passing an explicit offset mollifies CIA. References #8646. | Jeremy Kemper | 2007-06-14 | 1 | -1/+1 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7020 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Improve Time and Date test coverage. Closes #8646. | Jeremy Kemper | 2007-06-14 | 1 | -4/+19 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7019 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Readable Date and DateTime#inspect. Closes #8570. | Jeremy Kemper | 2007-06-04 | 1 | -0/+6 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6933 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 | -0/+6 |
| | | | | | | Date#to_s(:rfc822). Closes #8512. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6902 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Time durations use since instead of + for accuracy. Closes #8513. | Jeremy Kemper | 2007-05-30 | 1 | -0/+2 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6901 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | DateTime uses Time formats. Closes #8476. | Jeremy Kemper | 2007-05-26 | 1 | -0/+6 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6854 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Date, Time, and DateTime support formatting blocks in addition to strftime ↵ | Jeremy Kemper | 2007-05-25 | 1 | -5/+8 |
| | | | | | | 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 | ||||
* | DateTime calculations analogous to the Date and Time extensions. Closes #7693. | Jeremy Kemper | 2007-03-04 | 1 | -1/+138 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6303 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Add missing files | Michael Koziarski | 2007-02-28 | 1 | -0/+15 |
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6264 5ecf4fe2-1ee6-0310-87b1-e25e094e27de |