mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
clarify that DateTime objects are allowed arguments
to distance_of_time_in_words
This commit is contained in:
@@ -18,7 +18,7 @@ module ActionView
|
||||
# the <tt>select_month</tt> method would use simply "date" (which can be overwritten using <tt>:prefix</tt>) instead
|
||||
# of "date[month]".
|
||||
module DateHelper
|
||||
# Reports the approximate distance in time between two Time or Date objects or integers as seconds.
|
||||
# Reports the approximate distance in time between two Time, Date or DateTime objects or integers as seconds.
|
||||
# Set <tt>include_seconds</tt> to true if you want more detailed approximations when distance < 1 min, 29 secs.
|
||||
# Distances are reported based on the following table:
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user