def sec_to_time(seconds, days_only=False, ):
    """Convert seconds in human readable values

    :param int seconds: Time in seconds
    :param bool days_only: Output only in days
    :return str: Human readable string """
    seconds = int(seconds)
    if seconds == 0:
        seconds = 1
    if seconds < 0:
        seconds *= (-1)

    days = seconds // 86400
    seconds -= days * 86400

    if not days_only:
        hours = seconds // 3600
        seconds -= hours * 3600
    else:
        hours = -1

    if not days_only:
        minutes = seconds // 60
        seconds -= minutes * 60
    else:
        minutes = -1

    return '{}{}{}{}'.format(
        '{} day{} '.format(days, 's' if days > 1 else '') if days > 0 else '< 1 day' if days_only else '',
        '{:02d}:'.format(hours) if hours > -1 else '',
        '{:02d}:'.format(minutes) if minutes > -1 else '',
        '{:02d}'.format(seconds) if minutes > -1 else '').strip()