def human_readable_stat(c):
    """
    Transform a timedelta expressed in seconds into a human readable string

    Parameters
    ----------
    c
        Timedelta expressed in seconds

    Returns
    ----------
    string
        Human readable string
    """
    c = int(c)
    days = c // 86400
    hours = c // 3600 % 24
    minutes = c // 60 % 60
    seconds = c % 60
    if days > 0:
        return str(days)+"D"
    if hours > 0:
        return str(hours)+"h"
    if minutes > 0:
        return str(minutes)+"m"
    return str(seconds)+"s"