Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | TimeWithZone#advance: leverage Hash#values_at and non-block form of #any? ↵ | Geoff Buesing | 2009-02-09 | 1 | -1/+1 |
| | | | | for a little less line noise, and a slight speedup (thanks raggi and Roman2K) | ||||
* | TimeWithZone#advance: use #any? instead of #detect | Geoff Buesing | 2009-02-08 | 1 | -1/+1 |
| | |||||
* | TimeWithZone: eliminate unnecessary flatten | Geoff Buesing | 2009-02-08 | 1 | -1/+1 |
| | |||||
* | TimeWithZone: use Array#any? instead of detect, since we don't care about ↵ | Geoff Buesing | 2009-02-08 | 1 | -1/+1 |
| | | | | the block return value | ||||
* | Make TimeWithZone#to_formatted_s an alias to TimeWithZone#to_s [#1796 ↵ | Levin Alexander | 2009-02-08 | 1 | -0/+1 |
| | | | | state:resolved] | ||||
* | Merge docrails | Pratik Naik | 2009-01-18 | 1 | -1/+1 |
| | |||||
* | TimeWithZone#xmlschema accepts optional fraction_digits argument [#1725 ↵ | Nicholas Dainty | 2009-01-11 | 1 | -2/+6 |
| | | | | state:resolved] | ||||
* | TimeWithZone#- gives correct result with wrapped DateTime, and with DateTime ↵ | gbuesing | 2009-01-04 | 1 | -1/+1 |
| | | | | argument | ||||
* | Inline code comments for class_eval/module_eval [#1657 state:resolved] | Xavier Noria | 2008-12-28 | 1 | -3/+3 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Lazy-require tzinfo for TimeZone | Jeremy Kemper | 2008-11-23 | 1 | -0/+1 |
| | |||||
* | TimeWithZone#freeze: preload instance variables so that we can actually freeze | gbuesing | 2008-10-19 | 1 | -2/+2 |
| | |||||
* | TimeWithZone #wday, #yday and #to_date avoid trip through #method_missing | gbuesing | 2008-09-14 | 1 | -1/+1 |
| | |||||
* | Add thorough tests for Time-object #past?, #future? and #today. Fix ↵ | gbuesing | 2008-09-14 | 1 | -1/+1 |
| | | | | 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 | -40/+52 |
| | | | | 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 with docrails. | Pratik Naik | 2008-07-16 | 1 | -1/+13 |
| | |||||
* | Fix TimeWithZone unmarshaling: coerce unmarshaled Time instances to utc, ↵ | gbuesing | 2008-07-14 | 1 | -1/+1 |
| | | | | because Ruby's marshaling of Time instances doesn't respect the zone | ||||
* | TimeWithZone#advance: treat :weeks option as variable-length | gbuesing | 2008-06-29 | 1 | -2/+2 |
| | |||||
* | TimeWithZone: when crossing DST boundary, treat Durations of days, months or ↵ | gbuesing | 2008-06-29 | 1 | -12/+33 |
| | | | | years as variable-length, and all other values as absolute length. A time + 24.hours will advance exactly 24 hours, but a time + 1.day will advance 23-25 hours, depending on the day. Ensure consistent behavior across all advancing methods. | ||||
* | Ruby 1.8.7 compat: TimeWithZone# and Chars#respond_to? pass along the ↵ | Jeremy Kemper | 2008-05-31 | 1 | -4/+4 |
| | | | | include_private argument | ||||
* | Merge docrails. | Pratik Naik | 2008-05-25 | 1 | -17/+17 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Adding documentation for time zone features | gbuesing | 2008-05-18 | 1 | -1/+28 |
| | |||||
* | TimeWithZone #+ and #- : ensure overflow to DateTime with Numeric arg | gbuesing | 2008-05-18 | 1 | -2/+2 |
| | |||||
* | Include time zone offset in TimeWithZone#to_json | Daniel Morrison | 2008-05-13 | 1 | -1/+1 |
| | |||||
* | TimeWithZone: date part getter methods (#year #mon #day etc) are defined on ↵ | gbuesing | 2008-05-08 | 1 | -0/+8 |
| | | | | class; no longer relying on method_missing | ||||
* | Improve documentation coverage and markup | Xavier Noria | 2008-05-02 | 1 | -6/+7 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Refactor TimeWithZone: don't send #since, #ago, #+, #-, #advance through ↵ | gbuesing | 2008-04-12 | 1 | -9/+18 |
| | | | | method_missing | ||||
* | TimeWithZone respects config.active_support.use_standard_json_time_format | gbuesing | 2008-04-12 | 1 | -1/+5 |
| | |||||
* | TimeWithZone#method_missing: send to utc to advance with dst correctness, ↵ | Geoff Buesing | 2008-04-02 | 1 | -18/+7 |
| | | | | | | otherwise send to time. Adding tests for time calculations methods git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9208 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Bundling abbreviated version of TZInfo gem 0.3.8: only the classes and zone ↵ | Geoff Buesing | 2008-03-30 | 1 | -0/+1 |
| | | | | | | definitions required to support Rails time zone features are included. If a recent version of the full TZInfo gem is installed, this will take precedence over the bundled version git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9149 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | config.time_zone and TimeWithZone#marshal_load accept tzinfo/Olson identifiers | Geoff Buesing | 2008-03-28 | 1 | -1/+1 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9108 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | TimeWithZone time conversions don't need to be wrapped in TimeOrDateTime, ↵ | Geoff Buesing | 2008-03-28 | 1 | -12/+2 |
| | | | | | | because TZInfo does this internally git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9106 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | TimeWithZone#usec returns 0 instead of error when DateTime is wrapped | Geoff Buesing | 2008-03-28 | 1 | -1/+5 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9105 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Ensure that TimeWithZone#to_yaml works when passed a YAML::Emitter. [rick] | Rick Olson | 2008-03-23 | 1 | -1/+5 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9081 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Ensure correct TimeWithZone#to_date | Geoff Buesing | 2008-03-22 | 1 | -1/+1 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9079 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Make TimeWithZone work with tzinfo 0.2.x: use ↵ | Geoff Buesing | 2008-03-21 | 1 | -1/+1 |
| | | | | | | TZInfo::Timezone#zone_identifier alias for #abbreviation, silence warnings on tests. Raise LoadError when TZInfo version is < 0.2 by sniffing for TZInfo::TimeOrDateTime constant. Move all tzinfo-dependent TimeZone tests into uses_tzinfo block git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9071 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Time, DateTime and TimeWithZone #in_time_zone defaults to Time.zone. ↵ | Geoff Buesing | 2008-03-17 | 1 | -7/+2 |
| | | | | | | 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 | ||||
* | Adding TimeZone#parse | Geoff Buesing | 2008-03-17 | 1 | -7/+16 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9045 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Adding TimeZone#at and DateTime#to_f | Geoff Buesing | 2008-03-17 | 1 | -1/+1 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9042 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | TimeWithZone responds to Ruby 1.9 weekday-named query methods | Geoff Buesing | 2008-03-17 | 1 | -0/+6 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9041 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | TimeWithZone caches TZInfo::TimezonePeriod used for time conversion so that ↵ | Geoff Buesing | 2008-03-17 | 1 | -8/+26 |
| | | | | | | it can be reused, and enforces DST rules correctly when instance is created from a local time git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9040 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Removing unneeded #change_time_zone method from Time, DateTime and TimeWithZone | Geoff Buesing | 2008-03-11 | 1 | -5/+0 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9008 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | TimeWithZone instances correctly enforce DST rules. Adding ↵ | Geoff Buesing | 2008-03-11 | 1 | -14/+12 |
| | | | | | | TimeZone#period_for_utc git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9006 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Adding TimeWithZone #marshal_dump and #marshal_load | Geoff Buesing | 2008-03-03 | 1 | -0/+8 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8975 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Adding TimeWithZone#between? | Geoff Buesing | 2008-02-17 | 1 | -1/+5 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8886 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | TimeWithZone #+ and #- behave consistently with numeric arguments regardless ↵ | Geoff Buesing | 2008-02-16 | 1 | -2/+15 |
| | | | | | | of whether wrapped time is a Time or DateTime; consistenty answers false to #acts_like?(:date) git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8884 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Adding TimeWithZone #to_yaml, #to_datetime, #eql? and method aliases for ↵ | Geoff Buesing | 2008-02-10 | 1 | -0/+23 |
| | | | | | | duck-typing compatibility with Time git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8854 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | TimeWithZone #in_time_zone returns +self+ if zone argument is the same as ↵ | Geoff Buesing | 2008-02-10 | 1 | -0/+1 |
| | | | | | | #time_zone git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8853 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Adding TimeWithZone #to_a, #to_f, #to_i, #httpdate, #rfc2822 | Geoff Buesing | 2008-02-10 | 1 | -1/+22 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8852 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Pruning unneeded TimeWithZone#change_time_zone_to_current | Geoff Buesing | 2008-02-10 | 1 | -5/+0 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8851 5ecf4fe2-1ee6-0310-87b1-e25e094e27de |