std.conv.time_diff_human

std.conv

time_diff_human(date, precision, start_ts) -> span

Get the human-readable time difference from a date to now

Calculates the time difference between a given date and the current time (or start_ts if provided), returning a human-readable string like "2 days, 3 hours". Precision controls the smallest unit shown.