Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Setting usec (and nsec for Ruby 1.9) on Time#end_of_* methods [#1255 ↵ | Hugo Peixoto | 2009-08-09 | 1 | -23/+23 |
| | | | | | | status:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Remove 'core' fluff. Hookable ActiveSupport.load_all! | Jeremy Kemper | 2009-05-20 | 1 | -1/+1 |
| | |||||
* | Work around Float faux precision | Jeremy Kemper | 2009-04-30 | 1 | -4/+4 |
| | |||||
* | Fix dependencies revealed by testing in isolation | Jeremy Kemper | 2009-04-22 | 1 | -0/+1 |
| | |||||
* | Test cleanup | Geoff Buesing | 2009-04-05 | 1 | -3/+3 |
| | |||||
* | Enhance Time #since and #ago DST tests. | Geoff Buesing | 2009-03-29 | 1 | -16/+57 |
| | |||||
* | Time.local instances: Adding 24.hours across the DST boundary adds 24 hours ↵ | Michael Curtis | 2009-03-29 | 1 | -16/+16 |
| | | | | instead of one day [#2066 state:resolved] | ||||
* | Time#to_s(:rfc822) uses #formatted_offset instead of unreliable and ↵ | Zachary Zolton | 2009-02-09 | 1 | -0/+4 |
| | | | | non-standard %z directive [#1899 state:resolved] | ||||
* | Require mocha >= 0.9.0 for AS tests | Jeremy Kemper | 2008-11-22 | 1 | -74/+70 |
| | |||||
* | Fix indentation mismatch | Jeremy Kemper | 2008-11-07 | 1 | -1/+1 |
| | |||||
* | Enhance testing for fractional days and weeks. Update changelog. | gbuesing | 2008-10-13 | 1 | -0/+8 |
| | |||||
* | Fixed Time#end_of_quarter to not blow up on May 31st [#313 state:resolved] | Carlos Brando | 2008-09-19 | 1 | -0/+1 |
| | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | Add thorough tests for Time-object #past?, #future? and #today. Fix ↵ | gbuesing | 2008-09-14 | 1 | -10/+65 |
| | | | | 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 | -6/+19 |
| | | | | classes to facilitate Date/Time comparisons. | ||||
* | Don't run 32bit dependant assertions in 64bit environments | Tarmo Tänav | 2008-09-04 | 1 | -4/+10 |
| | | | | Signed-off-by: Michael Koziarski <michael@koziarski.com> | ||||
* | Fix Ruby's Time marshaling bug in pre-1.9 versions of Ruby: utc instances ↵ | Luca Guidi | 2008-08-27 | 1 | -0/+34 |
| | | | | are now correctly unmarshaled with a utc zone instead of the system local zone [#900 state:resolved] | ||||
* | If it doesn't overflow, it won't have a .start method. So don't run the ↵ | Michael Koziarski | 2008-07-20 | 1 | -1/+1 |
| | | | | second assertion either | ||||
* | Handle the case where 64bit time_t won't overflow. | Michael Koziarski | 2008-07-20 | 1 | -1/+6 |
| | |||||
* | Namespace Inflector, Dependencies, OrderedOptions, and TimeZone under ↵ | Joshua Peek | 2008-06-03 | 1 | -14/+14 |
| | | | | ActiveSupport [#238 state:resolved] | ||||
* | Time#since behaves correctly when passed a Duration. Closes #11527 [kemiller] | gbuesing | 2008-04-12 | 1 | -2/+53 |
| | |||||
* | Time #yesterday and #tomorrow behave correctly crossing DST boundary. Closes ↵ | Geoff Buesing | 2008-04-04 | 1 | -0/+52 |
| | | | | | | #7399 [sblackstone] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9221 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | test_time_with_datetime_fallback expects DateTime.local_offset instead of ↵ | Geoff Buesing | 2008-03-10 | 1 | -2/+2 |
| | | | | | | DateTime.now.offset git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9002 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Adding Time#end_of_day, _quarter, _week, and _year. Closes #9312. | Jeremy Kemper | 2008-02-27 | 1 | -0/+35 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8934 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Time.=== returns true for TimeWithZone instances | Geoff Buesing | 2008-02-16 | 1 | -0/+6 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8885 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Add Time Zone support to ActiveRecord, and config.time_zone property for ↵ | Rick Olson | 2008-02-06 | 1 | -0/+9 |
| | | | | | | specifying a default Time Zone. Closes #10982 [Geoff Buesing, rick] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8806 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | with_timezone test helper renamed with_env_tz, to distinguish between ↵ | Geoff Buesing | 2008-01-26 | 1 | -24/+24 |
| | | | | | | 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 | ||||
* | Time#- coerces TimeWithZone argument to a Time instance so that difference ↵ | Geoff Buesing | 2008-01-25 | 1 | -0/+4 |
| | | | | | | in seconds can be calculated. Closes #10914 [Geoff Buesing, yyyc514] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8730 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 | ||||
* | Time.days_in_month defaults to current year if no year is supplied as ↵ | Geoff Buesing | 2008-01-25 | 1 | -1/+13 |
| | | | | | | argument, uses Date.gregorian_leap? to determine leap year, and uses constant lookup to determine days in month. Closes #10799 [Radar] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8715 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/+15 |
| | | | | | | strings with cross-platform consistency git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8698 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 | ||||
* | Fix invalid time test. Closes #10632 [Dirkjan Bussink] | Jeremy Kemper | 2008-01-02 | 1 | -1/+1 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8518 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 | ||||
* | 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 | -3/+5 |
| | | | | | | [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 | -2/+8 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7868 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Fix Time#years_ago and #years_since from leap days. Closes #9865. | Jeremy Kemper | 2007-10-13 | 1 | -0/+2 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7867 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Time and DateTime#advance accept :hours, :minutes, and :seconds options. ↵ | Jeremy Kemper | 2007-10-13 | 1 | -2/+16 |
| | | | | | | Closes #9825. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7866 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 | ||||
* | 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 | -3/+4 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7647 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Fix tests across DST (closes #9020) [mpalmer] | David Heinemeier Hansson | 2007-09-22 | 1 | -5/+7 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7557 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/+2 |
| | | | | | | #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 | -17/+23 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7019 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 | -4/+5 |
| | | | | | | 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 | ||||
* | Fix to_datetime test broken by DST change. Closes #7797. | Jeremy Kemper | 2007-03-12 | 1 | -2/+2 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6389 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Time#since overflows to DateTime. Introduce Time#to_datetime. Closes #7715. | Jeremy Kemper | 2007-03-05 | 1 | -0/+12 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6335 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Out-of-range Time calculations transparently overflow to DateTime. Closes #7706. | Jeremy Kemper | 2007-03-04 | 1 | -0/+25 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6305 5ecf4fe2-1ee6-0310-87b1-e25e094e27de |