Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | add some missing requires for AS core_ext/numeric/time. Closes #1038 | Josh Kalderimis | 2011-05-18 | 1 | -0/+1 |
| | |||||
* | Removed some redundant Time#change time options from beginning_of_ methods ↵ | Chris Kalafarski | 2011-03-13 | 1 | -3/+3 |
| | | | | in Date and Time | ||||
* | refactored Time#<=> and DateTime#<=> by removing unnecessary calls without ↵ | Diego Carrion | 2011-03-04 | 1 | -11/+2 |
| | | | | | | losing performance Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | ||||
* | updated Time, Date and DateTime current methods in AS to use Time.zone and ↵ | Josh Kalderimis | 2011-02-28 | 1 | -2/+2 |
| | | | | | | not Time.zone_default. [#6410 state:committed] | ||||
* | implements weeks_ago and prev_week for Date/DateTime/Time [#5122 ↵ | Rob Zolkos & Xavier Noria | 2010-10-16 | 1 | -1/+11 |
| | | | | state:committed] | ||||
* | Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵ | Santiago Pastorino | 2010-08-14 | 1 | -2/+2 |
| | | | | 's/[ \t]*$//' -i {} \;) | ||||
* | Refactor move some date, time and date_time methods to */zones and fixed ↵ | Santiago Pastorino | 2010-07-03 | 1 | -0/+5 |
| | | | | some requires | ||||
* | removes deprecations of last_(month|year) from master, they will be ↵ | Xavier Noria | 2010-05-19 | 1 | -11/+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 | -2/+12 |
| | | | | deprecates last_(month|year) | ||||
* | let Time.time_with_datetime_fallback handle properly years in the range 0..138 | Xavier Noria | 2010-05-05 | 1 | -3/+5 |
| | |||||
* | 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 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] | ||||
* | | Explicit dependency on Date calculations extensions | Jeremy Kemper | 2009-03-28 | 1 | -0/+1 |
| | | |||||
* | | Convert Time extension modules to class reopens | Jeremy Kemper | 2009-03-26 | 1 | -298/+281 |
|/ | |||||
* | 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. | ||||
* | Merge with docrails. | Pratik Naik | 2008-07-16 | 1 | -1/+1 |
| | |||||
* | Improve documentation coverage and markup | Xavier Noria | 2008-05-02 | 1 | -4/+6 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Time#since behaves correctly when passed a Duration. Closes #11527 [kemiller] | gbuesing | 2008-04-12 | 1 | -5/+8 |
| | |||||
* | 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 | ||||
* | 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#- 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.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 | ||||
* | Honor Ruby's default calendar reform setting when creating DateTime objects ↵ | Geoff Buesing | 2007-11-24 | 1 | -1/+1 |
| | | | | | | 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 | -1/+1 |
| | | | | | | 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/+1 |
| | | | | | | [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/+1 |
| | | | | 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 | -2/+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/+4 |
| | | | | | | 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 | -21/+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 | ||||
* | Deprecation: remove deprecated :mday option from Time, Date, and ↵ | Jeremy Kemper | 2007-09-18 | 1 | -5/+5 |
| | | | | | | DateTime#change. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7508 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Some 1.9 forward compatibility | Jeremy Kemper | 2007-09-14 | 1 | -5/+7 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7474 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 | -4/+2 |
| | | | | | | #8655 [gbuesing] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7262 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | fix one line formatting bug | Michael Koziarski | 2007-07-19 | 1 | -1/+1 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7196 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Added Date#change (like Time#change) [DHH] | David Heinemeier Hansson | 2007-05-31 | 1 | -1/+1 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6910 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Time#since overflows to DateTime. Introduce Time#to_datetime. Closes #7715. | Jeremy Kemper | 2007-03-05 | 1 | -0/+2 |
| | | | | 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 | -24/+44 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6305 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Make 1.months and friends accurate by introducing a Duration class. #6835 ↵ | Michael Koziarski | 2007-01-15 | 1 | -0/+21 |
| | | | | | | [eventualbuddha] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5940 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Fix end of day | David Heinemeier Hansson | 2006-11-14 | 1 | -1/+1 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5523 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Added Time#end_of_day to get 23:59:59 of that day [DHH] | David Heinemeier Hansson | 2006-11-12 | 1 | -0/+5 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5495 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | next_week respects DST changes. Closes #5617, closes #2353, closes #2509, ↵ | Jeremy Kemper | 2006-11-02 | 1 | -6/+7 |
| | | | | | | references #4551. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5388 5ecf4fe2-1ee6-0310-87b1-e25e094e27de |