Permalink
Browse files

Merge pull request #9384 from eval/documentation_of_minute

Correct comment for (beginning|end)_of_minute [ci skip]
  • Loading branch information...
2 parents c5a9c02 + eb1c5c4 commit e4c2a13b1be2aa22c98b9581110aa72b39176c47 @carlosantoniodasilva carlosantoniodasilva committed Feb 22, 2013
@@ -123,8 +123,8 @@ def end_of_hour
change(:min => 59, :sec => 59)
end
alias :at_end_of_hour :end_of_hour
-
- # Returns a new DateTime representing the start of the hour (hh:mm:00).
+
+ # Returns a new DateTime representing the start of the minute (hh:mm:00).
def beginning_of_minute
change(:sec => 0)
end
@@ -188,13 +188,13 @@ def end_of_hour
end
alias :at_end_of_hour :end_of_hour
- # Returns a new Time representing the start of the hour (x:xx:00)
+ # Returns a new Time representing the start of the minute (x:xx:00)
def beginning_of_minute
change(:sec => 0)
end
alias :at_beginning_of_minute :beginning_of_minute
- # Returns a new Time representing the end of the hour, x:59:59.999999 (.999999999 in ruby1.9)
+ # Returns a new Time representing the end of the minute, x:xx:59.999999 (.999999999 in ruby1.9)
def end_of_minute
change(
:sec => 59,

0 comments on commit e4c2a13

Please sign in to comment.