A component for showing "time since created", in days
Not listed in the official PatternFly 4 component list.
created : { createdOn : Time.Posix, now : Time.Posix } -> Created msg
Constructs a Created msg
element using a record
with a createdOn
and now
value.
Uses Time
in elm/time
.
Created.created
{ createdOn = Time.millisToPosix 1609468521866
, now = Time.millisToPosix 1609468694666
}
|> Created.toMarkup
toMarkup : Created msg -> Element msg
Given the custom type representation, renders as an Element msg
.