Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove stray instance variable to resolve serialization problem [#3769 ↵ | wycats | 2010-03-27 | 1 | -3/+9 |
| | | | | state:resolved] (ht: Joe Rafaniello) | ||||
* | avoid active_support/core_ext/time/conversions.rb warnings | Santiago Pastorino | 2010-03-21 | 1 | -0/+1 |
| | | | | | | [#4250 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | 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 docrails | Pratik Naik | 2009-07-25 | 1 | -1/+1 |
| | |||||
* | Check for date/time methods that moved upstream in 1.9 | Jeremy Kemper | 2009-05-07 | 1 | -1/+1 |
| | |||||
* | Prefer behavior check to RUBY_VERSION to catch 1.8 backports | Jeremy Kemper | 2009-04-29 | 1 | -2/+2 |
| | |||||
* | 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] | ||||
* | | JRuby doesn't have UnboundMethod#name | Jeremy Kemper | 2009-03-29 | 1 | -1/+1 |
| | | |||||
* | | Convert Time conversions extension module to class reopen | Jeremy Kemper | 2009-03-28 | 2 | -83/+79 |
| | | |||||
* | | Explicit dependency on Date calculations extensions | Jeremy Kemper | 2009-03-28 | 1 | -0/+1 |
| | | |||||
* | | Tease out Object#acts_like? behaviors | Jeremy Kemper | 2009-03-28 | 2 | -13/+8 |
| | | |||||
* | | Convert Time extension modules to class reopens | Jeremy Kemper | 2009-03-26 | 2 | -379/+352 |
| | | |||||
* | | Extract time fixes into separate extensions | Jeremy Kemper | 2009-03-24 | 2 | -0/+32 |
| | | |||||
* | | Move Numeric#to_utc_offset_s to TimeZone.seconds_to_utc_offset | Jeremy Kemper | 2009-03-23 | 1 | -1/+1 |
|/ | |||||
* | Time#to_s(:rfc822) uses #formatted_offset instead of unreliable and ↵ | Zachary Zolton | 2009-02-09 | 1 | -1/+1 |
| | | | | non-standard %z directive [#1899 state:resolved] | ||||
* | Explicitly require AS::Duration | Jeremy Kemper | 2008-11-17 | 1 | -0/+2 |
| | |||||
* | Time#advance recognizes fractional days and weeks [#970 state:resolved] | Tom Lea | 2008-10-13 | 1 | -0/+10 |
| | |||||
* | Fixed Time#end_of_quarter to not blow up on May 31st [#313 state:resolved] | Carlos Brando | 2008-09-19 | 1 | -1/+1 |
| | | | | Signed-off-by: Joshua Peek <josh@joshpeek.com> | ||||
* | Introduce convenience methods past?, today? and future? for Date and Time ↵ | Clemens Kofler | 2008-09-14 | 1 | -10/+25 |
| | | | | classes to facilitate Date/Time comparisons. | ||||
* | Get rid of 'Object#send!'. It was originally added because it's in Ruby 1.9, ↵ | Jeremy Kemper | 2008-08-31 | 1 | -1/+1 |
| | | | | | | | | | | but it has since been removed from 1.9. Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> Conflicts: actionpack/test/controller/layout_test.rb | ||||
* | Merge docrails changes | Pratik Naik | 2008-07-28 | 1 | -0/+1 |
| | |||||
* | Merge with docrails. | Pratik Naik | 2008-07-16 | 1 | -1/+1 |
| | |||||
* | Merge docrails. | Pratik Naik | 2008-05-25 | 2 | -13/+13 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Adding documentation for time zone features | gbuesing | 2008-05-18 | 1 | -8/+19 |
| | |||||
* | Improve documentation coverage and markup | Xavier Noria | 2008-05-02 | 1 | -4/+6 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Duration #since and #ago with no argument (e.g., 5.days.ago) return ↵ | gbuesing | 2008-04-20 | 1 | -0/+5 |
| | | | | TimeWithZone when config.time_zone is set. Introducing Time.current, which returns Time.zone.now if config.time_zone is set, otherwise just returns Time.now | ||||
* | Time#since behaves correctly when passed a Duration. Closes #11527 [kemiller] | gbuesing | 2008-04-12 | 1 | -5/+8 |
| | |||||
* | Improve documentation. | Pratik Naik | 2008-04-05 | 2 | -30/+14 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9226 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Time #yesterday and #tomorrow behave correctly crossing DST boundary. Closes ↵ | Geoff Buesing | 2008-04-04 | 1 | -2/+2 |
| | | | | | | #7399 [sblackstone] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9221 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Time.zone= accepts TZInfo::Timezone instances and Olson identifiers; wraps ↵ | Geoff Buesing | 2008-03-28 | 1 | -2/+9 |
| | | | | | | result in TimeZone instance git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9107 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Improve documentation. | Pratik Naik | 2008-03-26 | 1 | -5/+5 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9093 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Time, DateTime and TimeWithZone #in_time_zone defaults to Time.zone. ↵ | Geoff Buesing | 2008-03-17 | 1 | -19/+16 |
| | | | | | | Removing now unneeded #in_current_time_zone. ActiveRecord time zone aware attributes updated to use #in_time_zone git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9047 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Removing unneeded #change_time_zone method from Time, DateTime and TimeWithZone | Geoff Buesing | 2008-03-11 | 1 | -13/+0 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9008 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Adding Time#end_of_day, _quarter, _week, and _year. Closes #9312. | Jeremy Kemper | 2008-02-27 | 1 | -0/+19 |
| | | | | 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/+5 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8885 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Time#zone=, #in_time_zone and #change_time_zone accept a Duration | Geoff Buesing | 2008-02-10 | 1 | -1/+2 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8850 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Time#in_time_zone handles Time.local instances correctly | Geoff Buesing | 2008-02-10 | 1 | -4/+2 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8849 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Pruning unneeded Time#change_time_zone_to_current. Enhanced docs for ↵ | Geoff Buesing | 2008-02-10 | 1 | -7/+6 |
| | | | | | | #change_time_zone git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8848 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Add Time Zone support to ActiveRecord, and config.time_zone property for ↵ | Rick Olson | 2008-02-06 | 1 | -1/+3 |
| | | | | | | 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 | ||||
* | Time#- coerces TimeWithZone argument to a Time instance so that difference ↵ | Geoff Buesing | 2008-01-25 | 1 | -0/+11 |
| | | | | | | 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 | ||||
* | Time.get_zone refactored to private method, given that the encapsulated ↵ | Geoff Buesing | 2008-01-25 | 1 | -6/+12 |
| | | | | | | logic is only useful internally git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8719 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Time.zone uses thread-local variable for thread safety. Adding ↵ | Geoff Buesing | 2008-01-25 | 1 | -7/+13 |
| | | | | | | | | Time.use_zone, for overriding Time.zone locally inside a block. Removing unneeded Time.zone_reset! git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8718 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 | -12/+7 |
| | | | | | | 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/+17 |
| | | | | | | #<=> 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 | ||||
* | Time #in_current_time_zone and #change_time_zone_to_current return self when ↵ | Geoff Buesing | 2008-01-23 | 1 | -2/+2 |
| | | | | | | Time.zone is nil git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8708 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Refactor Time and DateTime #to_formatted_s: use ternary instead of nested ↵ | Geoff Buesing | 2008-01-23 | 1 | -9/+2 |
| | | | | | | if/else git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8699 5ecf4fe2-1ee6-0310-87b1-e25e094e27de |