aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/active_support_core_extensions.textile
diff options
context:
space:
mode:
authorMark J. Titorenko <mark@titorenko.net>2012-05-07 12:07:35 +0100
committerMark J. Titorenko <mark@titorenko.net>2012-05-07 12:07:35 +0100
commitf174e8dcef66446cb7483c48dc746887b29078b6 (patch)
treee5fd5590cf5827bdd33157c7066314f3a006d970 /guides/source/active_support_core_extensions.textile
parent8c4777f446d9e14deb077f44d31579a5a96e68ae (diff)
downloadrails-f174e8dcef66446cb7483c48dc746887b29078b6.tar.gz
rails-f174e8dcef66446cb7483c48dc746887b29078b6.tar.bz2
rails-f174e8dcef66446cb7483c48dc746887b29078b6.zip
Corrections to +beginning_of_day+ and +end_of_day+ example dates.
Diffstat (limited to 'guides/source/active_support_core_extensions.textile')
-rw-r--r--guides/source/active_support_core_extensions.textile4
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/active_support_core_extensions.textile b/guides/source/active_support_core_extensions.textile
index a238a84e8c..c9e9a13c09 100644
--- a/guides/source/active_support_core_extensions.textile
+++ b/guides/source/active_support_core_extensions.textile
@@ -3052,14 +3052,14 @@ The method +beginning_of_day+ returns a timestamp at the beginning of the day (0
<ruby>
date = Date.new(2010, 6, 7)
-date.beginning_of_day # => Sun Jun 07 00:00:00 +0200 2010
+date.beginning_of_day # => Mon Jun 07 00:00:00 +0200 2010
</ruby>
The method +end_of_day+ returns a timestamp at the end of the day (23:59:59):
<ruby>
date = Date.new(2010, 6, 7)
-date.end_of_day # => Sun Jun 06 23:59:59 +0200 2010
+date.end_of_day # => Mon Jun 07 23:59:59 +0200 2010
</ruby>
+beginning_of_day+ is aliased to +at_beginning_of_day+, +midnight+, +at_midnight+.