Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
module
LocalTimeHelper
Crystal implementation of view helper for https://github.com/basecamp/local_time
Constants
DEFAULT_TIME_FORMAT = "%
B
%e, %
Y
%l:%
M
%p"
VERSION = "0.2.2"
Instance methods
local_date
(time :
Time
|
Nil
, format :
String
= "%
B
%e, %
Y
", **options)
Source
local_date
(time :
Time
|
Nil
, *, format :
String
, **options)
Source
local_relative_time
(time :
Time
|
Nil
, type :
String
= "time-or-date", **options)
Source
local_relative_time
(time :
Time
|
Nil
, *, type :
String
, **options)
Source
local_time
(time :
Time
|
Nil
, format :
String
=
DEFAULT_TIME_FORMAT
, **options)
Source
local_time
(time :
Time
|
Nil
, *, format :
String
, **options)
Source
local_time_ago
(time :
Time
|
Nil
, **options)
Source