aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/time
Commit message (Collapse)AuthorAgeFilesLines
* Fix marshal round-tripping of fractional seconds (Time#subsec).Jason Weathered2011-04-171-0/+1
|
* added find_zone and find_zone! to AS timezones and changed the AS Railtie to ↵Josh Kalderimis2011-04-051-15/+18
| | | | | | use find_zone! as well as adding Railtie tests Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Raise on invalid timezoneMarc-Andre Lafortune2011-04-051-8/+12
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* refactored Time#<=> and DateTime#<=> by removing unnecessary calls without ↵Diego Carrion2011-03-041-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 Kalderimis2011-02-281-2/+2
| | | | | | not Time.zone_default. [#6410 state:committed]
* Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-02-051-4/+8
|\
| * Change Time.zone= docs.Brian Morearty2011-02-041-4/+8
| | | | | | | | | | Update the example to show how to reset the current thread's Time.zone upon exiting a request.
* | Ruby 1.8.7+ provides to_date/to_datetime, AS just makes them public.John Firebaugh2011-02-031-22/+0
|/ | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* In AS, only inflector/methods is need in proxy_wrappers.rb, as well as date, ↵Josh Kalderimis2011-01-121-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>
* implements weeks_ago and prev_week for Date/DateTime/Time [#5122 ↵Rob Zolkos & Xavier Noria2010-10-161-1/+11
| | | | state:committed]
* fix time.to_formatted_time(:time) exampleAditya Sanghi2010-10-131-2/+2
|
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-143-6/+6
| | | | 's/[ \t]*$//' -i {} \;)
* Refactor move some date, time and date_time methods to */zones and fixed ↵Santiago Pastorino2010-07-032-5/+5
| | | | some requires
* when the timezone is nil, a TimeWithZone object should not be constructed. ↵Aaron Patterson2010-06-171-0/+2
| | | | | | [#4881 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* removes deprecations of last_(month|year) from master, they will be ↵Xavier Noria2010-05-191-11/+0
| | | | deprecated in 2.3 instead
* defines prev_(month|year) in Date and Time to ease transition to 1.9, and ↵Xavier Noria2010-05-121-2/+12
| | | | deprecates last_(month|year)
* let Time.time_with_datetime_fallback handle properly years in the range 0..138Xavier Noria2010-05-051-3/+5
|
* Ruby 1.9.2: marshaling round-trips Time#zoneJeremy Kemper2010-03-282-26/+56
|
* Actually check the value of the ivarwycats2010-03-271-4/+2
|
* Remove stray instance variable to resolve serialization problem [#3769 ↵wycats2010-03-271-3/+9
| | | | state:resolved] (ht: Joe Rafaniello)
* avoid active_support/core_ext/time/conversions.rb warningsSantiago Pastorino2010-03-211-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 Buesing2010-01-271-1/+1
| | | | i.e. returns the difference between self and arg as a Float [#3476 status:resolved]
* Missing acts_like dependencyYehuda Katz2009-12-201-0/+1
|
* Ruby 1.9: fix Time#beginning_of_day inaccuracy due to subtracting a FloatJeremy Kemper2009-08-221-1/+2
|
* Setting usec (and nsec for Ruby 1.9) on Time#end_of_* methods [#1255 ↵Hugo Peixoto2009-08-091-8/+8
| | | | | | status:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Merge docrailsPratik Naik2009-07-251-1/+1
|
* Check for date/time methods that moved upstream in 1.9Jeremy Kemper2009-05-071-1/+1
|
* Prefer behavior check to RUBY_VERSION to catch 1.8 backportsJeremy Kemper2009-04-291-2/+2
|
* Merge branch 'master' into cherryJeremy Kemper2009-04-201-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 Curtis2009-03-291-11/+3
| | | | | | | | instead of one day [#2066 state:resolved]
* | JRuby doesn't have UnboundMethod#nameJeremy Kemper2009-03-291-1/+1
| |
* | Convert Time conversions extension module to class reopenJeremy Kemper2009-03-282-83/+79
| |
* | Explicit dependency on Date calculations extensionsJeremy Kemper2009-03-281-0/+1
| |
* | Tease out Object#acts_like? behaviorsJeremy Kemper2009-03-282-13/+8
| |
* | Convert Time extension modules to class reopensJeremy Kemper2009-03-262-379/+352
| |
* | Extract time fixes into separate extensionsJeremy Kemper2009-03-242-0/+32
| |
* | Move Numeric#to_utc_offset_s to TimeZone.seconds_to_utc_offsetJeremy Kemper2009-03-231-1/+1
|/
* Time#to_s(:rfc822) uses #formatted_offset instead of unreliable and ↵Zachary Zolton2009-02-091-1/+1
| | | | non-standard %z directive [#1899 state:resolved]
* Explicitly require AS::DurationJeremy Kemper2008-11-171-0/+2
|
* Time#advance recognizes fractional days and weeks [#970 state:resolved]Tom Lea2008-10-131-0/+10
|
* Fixed Time#end_of_quarter to not blow up on May 31st [#313 state:resolved]Carlos Brando2008-09-191-1/+1
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Introduce convenience methods past?, today? and future? for Date and Time ↵Clemens Kofler2008-09-141-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 Kemper2008-08-311-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 changesPratik Naik2008-07-281-0/+1
|
* Merge with docrails.Pratik Naik2008-07-161-1/+1
|
* Merge docrails.Pratik Naik2008-05-252-13/+13
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Adding documentation for time zone featuresgbuesing2008-05-181-8/+19
|
* Improve documentation coverage and markupXavier Noria2008-05-021-4/+6
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Duration #since and #ago with no argument (e.g., 5.days.ago) return ↵gbuesing2008-04-201-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]gbuesing2008-04-121-5/+8
|