Module Vdom_time_ago.Format

type t =
  1. | Time_ago
  2. | Short_string_ago
  3. | Short_string_until
  4. | Custom of now:Core.Time_ns.t -> reference:Core.Time_ns.t -> string

Time_ago generates a user-friendly string representing the time difference (e.g. 1h 30s turns into "1 hour ago"), while Short_string_ago and Short_string_until are equivalent to Time_ns.Span.to_short_string