def seconds_to_timeleft(seconds):
    """Utilty function converting seconds to string representation."""
    days, seconds = seconds // 86400, seconds % 86400
    hours, seconds = seconds // 3600, seconds % 3600
    minutes, seconds = seconds // 60, seconds % 60
    timeleft = ''
    if days:
        timeleft += '{0}d'.format(days)
    if hours:
        timeleft += '{0}h'.format(hours)
    if minutes:
        timeleft += '{0}m'.format(minutes)
    if seconds:
        timeleft += '{0}s'.format(seconds)
    return timeleft