Function panorama::ui::mail_view::humanize_timestamp[][src]

fn humanize_timestamp(date: DateTime<Local>) -> String

Turn a timestamp into a format that a human might read when viewing it in a table.

This means, for dates within the past 24 hours, report it in a relative format.

For dates sent this year, omit the year entirely.