diff options
author | Xavier Noria <fxn@hashref.com> | 2010-05-09 11:44:22 +0300 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-05-09 11:44:22 +0300 |
commit | 08d991ad409295a2d91b10bca4c7080fdbe7b5b9 (patch) | |
tree | 269b65c5767df734073d78d294bc1bd9b7783243 /railties/guides | |
parent | 345c38a5277400e96a0b6992192037f0eaa81718 (diff) | |
download | rails-08d991ad409295a2d91b10bca4c7080fdbe7b5b9.tar.gz rails-08d991ad409295a2d91b10bca4c7080fdbe7b5b9.tar.bz2 rails-08d991ad409295a2d91b10bca4c7080fdbe7b5b9.zip |
AS guide: you know, the 10th is not November
Diffstat (limited to 'railties/guides')
-rw-r--r-- | railties/guides/source/active_support_core_extensions.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/active_support_core_extensions.textile b/railties/guides/source/active_support_core_extensions.textile index 091a639270..d321e3db72 100644 --- a/railties/guides/source/active_support_core_extensions.textile +++ b/railties/guides/source/active_support_core_extensions.textile @@ -2652,7 +2652,7 @@ h4. Calculations All the following methods are defined in +active_support/core_ext/date/calculations.rb+. -WARNING: The following calculation methods have edge cases in November 1582, since days 5..14 just do not exist. This guide does not document their behavior around those days for brevity, but it is enough to say that they do what you would expect. That is, +Date.new(1582, 10, 4).tomorrow+ returns +Date.new(1582, 10, 15)+ and so on. Please check +test/core_ext/date_ext_test.rb+ in the Active Support test suite for expected behavior. +INFO: The following calculation methods have edge cases in October 1582, since days 5..14 just do not exist. This guide does not document their behavior around those days for brevity, but it is enough to say that they do what you would expect. That is, +Date.new(1582, 10, 4).tomorrow+ returns +Date.new(1582, 10, 15)+ and so on. Please check +test/core_ext/date_ext_test.rb+ in the Active Support test suite for expected behavior. h5. +Date.current+ |