module HumanizeTime
Extended Modules
Defined in:
humanize_time.crhumanize_time/version.cr
Constant Summary
-
MINUTES_IN_QUARTER_YEAR =
131400
-
MINUTES_IN_THREE_QUARTERS_YEAR =
394200
-
MINUTES_IN_YEAR =
525600
-
VERSION =
{{ (`shards version /srv/crystaldoc.info/github-mamantoha-humanize_time-v0.12.2/src/humanize_time`).chomp.stringify }}
Instance Method Summary
- #available_locales
-
#distance_of_time_in_words(from_time : Time, to_time : Time, include_seconds = false)
Inspired by http://api.rubyonrails.org/classes/ActionView/Helpers/DateHelper.html#method-i-distance_of_time_in_words
- #distance_of_time_in_words(distance : Time::Span, include_seconds = false)
- #locale
- #locale=(locale : String | Symbol)
Instance Method Detail
def distance_of_time_in_words(from_time : Time, to_time : Time, include_seconds = false)
#
Inspired by http://api.rubyonrails.org/classes/ActionView/Helpers/DateHelper.html#method-i-distance_of_time_in_words