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 = "0.4.0"

Instance Method Summary

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


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

[View source]
def locale #

[View source]
def locale=(locale) #

[View source]