Packages

A lightweight Gleam library for formatting timestamps as human-readable relative time strings (e.g., '5 minutes ago', 'in 2 hours') with support for multiple locales.

Current section

Files

Jump to
timeago include timeago_TimeAgo.hrl
Raw

include/timeago_TimeAgo.hrl

-record(time_ago, {
now :: gleam@time@timestamp:timestamp(),
locale :: fun((timeago:tense(), gleam@time@duration:unit(), integer()) -> binary())
}).