Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | refactored Time#<=> and DateTime#<=> by removing unnecessary calls without ↵ | Diego Carrion | 2011-03-04 | 1 | -8/+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 | -1/+2 | |
| | | | | | | not Time.zone_default. [#6410 state:committed] | |||||
* | Preserve fractional seconds in DateTime#to_time | John Firebaugh | 2011-02-03 | 1 | -1/+1 | |
| | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | |||||
* | In AS, only inflector/methods is need in proxy_wrappers.rb, as well as date, ↵ | Josh Kalderimis | 2011-01-12 | 1 | -1/+1 | |
| | | | | | | date_time, and time conversions.rb. This fixes an issue when requiring json and AS saying that i18n is also required. Signed-off-by: Santiago Pastorino <santiago@wyeworks.com> | |||||
* | Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵ | Santiago Pastorino | 2010-08-14 | 2 | -7/+7 | |
| | | | | 's/[ \t]*$//' -i {} \;) | |||||
* | Refactor move some date, time and date_time methods to */zones and fixed ↵ | Santiago Pastorino | 2010-07-03 | 3 | -0/+4 | |
| | | | | some requires | |||||
* | when the timezone is nil, a TimeWithZone object should not be constructed. ↵ | Aaron Patterson | 2010-06-17 | 1 | -0/+2 | |
| | | | | | | [#4881 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | fix conditions when DateTime#to_date and DateTime#xmlschema methods are defined | Raimonds Simanovskis | 2010-06-04 | 1 | -3/+3 | |
| | ||||||
* | let Time.time_with_datetime_fallback handle properly years in the range 0..138 | Xavier Noria | 2010-05-05 | 1 | -0/+6 | |
| | ||||||
* | AS datetime conversions now require AS time conversions | snusnu | 2010-03-18 | 1 | -0/+1 | |
| | ||||||
* | date_time/calculations.rb needs active_support/core_ext/object/acts_like ↵ | Xavier Noria | 2010-01-01 | 1 | -0/+1 | |
| | | | | because it uses acts_like? | |||||
* | Added #to_i to DateTime in ActiveSupport so #to_yaml works correctly on ↵ | Serguei Filimonov | 2009-12-15 | 1 | -2/+13 | |
| | | | | ActiveRecord models with DateTime attributes. | |||||
* | Ruby 1.9.2: rational.rb is deprecated | Jeremy Kemper | 2009-11-02 | 1 | -1/+1 | |
| | ||||||
* | Check for date/time methods that moved upstream in 1.9 | Jeremy Kemper | 2009-05-07 | 1 | -3/+3 | |
| | ||||||
* | Convert DateTime extensions to class reopens | Jeremy Kemper | 2009-03-28 | 1 | -87/+75 | |
| | ||||||
* | Tease out Object#acts_like? behaviors | Jeremy Kemper | 2009-03-28 | 1 | -0/+13 | |
| | ||||||
* | Convert DateTime extension modules to class reopens | Jeremy Kemper | 2009-03-26 | 2 | -108/+111 | |
| | ||||||
* | Move Numeric#to_utc_offset_s to TimeZone.seconds_to_utc_offset | Jeremy Kemper | 2009-03-23 | 1 | -1/+1 | |
| | ||||||
* | Merge docrails | Pratik Naik | 2009-01-18 | 1 | -1/+1 | |
| | ||||||
* | Introduce convenience methods past?, today? and future? for Date and Time ↵ | Clemens Kofler | 2008-09-14 | 1 | -5/+19 | |
| | | | | classes to facilitate Date/Time comparisons. | |||||
* | Improve documentation coverage and markup | Xavier Noria | 2008-05-02 | 1 | -2/+4 | |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | |||||
* | Ruby 1.8.7 compat: detect and alias non-superclass DateTime#to_s | Jeremy Kemper | 2008-04-20 | 1 | -4/+9 | |
| | ||||||
* | Add #getutc alias for DateTime#utc | gbuesing | 2008-04-12 | 1 | -0/+1 | |
| | ||||||
* | Improve documentation. | Pratik Naik | 2008-04-05 | 1 | -1/+1 | |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9226 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Fine, warn. Just don't recurse to death in cc.rb | Jeremy Kemper | 2008-03-31 | 1 | -1/+1 | |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9161 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Always alias DateTime#to_s to #to_default_s | Jeremy Kemper | 2008-03-31 | 1 | -1/+1 | |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9155 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Play nice with 1.9's DateTime#to_s | Jeremy Kemper | 2008-03-29 | 1 | -1/+2 | |
| | | | | 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/+6 | |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9042 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Adding Time and DateTime #compare_with_coercion, which layers behavior on ↵ | Geoff Buesing | 2008-01-23 | 1 | -0/+12 | |
| | | | | | | #<=> 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 | |||||
* | Remove unneeded #to_datetime_default_s alias for DateTime#to_s, given that ↵ | Geoff Buesing | 2008-01-23 | 1 | -1/+0 | |
| | | | | | | we inherit a #to_default_s from Date that does exactly the same thing git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8705 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 | |||||
* | Adding Time and DateTime #formatted_offset, for outputting +HH:MM utc offset ↵ | Geoff Buesing | 2008-01-23 | 1 | -0/+9 | |
| | | | | | | 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/+20 | |
| | | | | | | compatibility with Time. Closes #10002 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8649 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Simplify to_formatted_s docs. Closes #10747 [Jeremy Kemper] | Jeremy Kemper | 2008-01-09 | 1 | -26/+14 | |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8608 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Document date and time to_formatted_s. Closes #10747 [leethal] | Jeremy Kemper | 2008-01-09 | 1 | -2/+23 | |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8606 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Docfix (closes #10369) [revans] | David Heinemeier Hansson | 2007-12-17 | 1 | -1/+17 | |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8428 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/+8 | |
| | | | | | | formatting [chuyeow] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8398 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Cater for DST changes when converting Times to DateTimes. Closes #10068 ↵ | Michael Koziarski | 2007-11-05 | 2 | -3/+12 | |
| | | | | | | [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 | |||||
* | 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 | |||||
* | Fixed Date#xmlschema for dates outside the range of what can be created with ↵ | David Heinemeier Hansson | 2007-10-01 | 1 | -0/+4 | |
| | | | | | | Time (closes #9744) [gbuesing] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7707 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Date/Time/DateTime Ruby 1.9 compat | Jeremy Kemper | 2007-09-27 | 1 | -2/+2 | |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7647 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Deprecation: remove deprecated :mday option from Time, Date, and ↵ | Jeremy Kemper | 2007-09-18 | 1 | -1/+1 | |
| | | | | | | 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 | -3/+1 | |
| | | | | | | #8655 [gbuesing] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7262 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | |||||
* | Readable Date and DateTime#inspect. Closes #8570. | Jeremy Kemper | 2007-06-04 | 1 | -0/+7 | |
| | | | | 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 | -119/+13 | |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6921 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 | -1/+9 | |
| | | | | | | 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 | -1/+1 | |
| | | | | 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 | -10/+1 | |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6854 5ecf4fe2-1ee6-0310-87b1-e25e094e27de |