module LocalTimeHelper
Overview
Crystal implementation of view helper for https://github.com/basecamp/local_time
Defined in:
local_time_helper.crConstant Summary
-
DEFAULT_TIME_FORMAT =
"%B %e, %Y %l:%M%p"
-
VERSION =
"0.2.2"
Instance Method Summary
- #local_date(time : Time | Nil, format : String = "%B %e, %Y", **options)
- #local_date(time : Time | Nil, *, format : String, **options)
- #local_relative_time(time : Time | Nil, type : String = "time-or-date", **options)
- #local_relative_time(time : Time | Nil, *, type : String, **options)
- #local_time(time : Time | Nil, format : String = DEFAULT_TIME_FORMAT, **options)
- #local_time(time : Time | Nil, *, format : String, **options)
- #local_time_ago(time : Time | Nil, **options)
Instance Method Detail
def local_relative_time(time : Time | Nil, type : String = "time-or-date", **options)
#