module LocalTimeHelper

Overview

Crystal implementation of view helper for https://github.com/basecamp/local_time

Defined in:

local_time_helper.cr

Constant Summary

DEFAULT_TIME_FORMAT = "%B %e, %Y %l:%M%p"
VERSION = "0.2.2"

Instance Method Summary

Instance Method Detail

def local_date(time : Time | Nil, format : String = "%B %e, %Y", **options) #

[View source]
def local_date(time : Time | Nil, *, format : String, **options) #

[View source]
def local_relative_time(time : Time | Nil, type : String = "time-or-date", **options) #

[View source]
def local_relative_time(time : Time | Nil, *, type : String, **options) #

[View source]
def local_time(time : Time | Nil, format : String = DEFAULT_TIME_FORMAT, **options) #

[View source]
def local_time(time : Time | Nil, *, format : String, **options) #

[View source]
def local_time_ago(time : Time | Nil, **options) #

[View source]