std.conv.time_span_human

std.conv

time_span_human(seconds, precision) -> span

Convert a duration in seconds to a human-readable time span

Converts seconds into a string like "1 year, 2 months, 3 days". Precision controls the smallest unit shown (default "second"). Note: results are approximate, months are treated as 30 days.