module HumanizeTime

Extended Modules

Defined in:

humanize_time.cr
humanize_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.3/src/humanize_time`).chomp.stringify }}

Instance Method Summary

Instance Method Detail

def available_locales #

[View source]
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


[View source]
def distance_of_time_in_words(distance : Time::Span, include_seconds = false) #

[View source]
def locale #

[View source]
def locale=(locale : String | Symbol) #

[View source]