Class SerenityHubRelativeTimeFormatter
Formats a UTC timestamp as a short human-readable relative string ("just now", "5 min ago", "2 h ago",
"3 d ago") for report-card and metric-card "last run" displays. Pure and side-effect free so it can be unit
tested without a validation cache or a running editor.
Inheritance
SerenityHubRelativeTimeFormatter
Assembly: Serenity.UnityLocalization.Installation.Editor.dll
public static class SerenityHubRelativeTimeFormatter
Methods
Declaration
public static string Format(DateTime timestampUtc, DateTime nowUtc)
Parameters
Returns