def convert_to_time(time):
    """Print the training time in days: hours: minutes: seconds format."""
    days = time // (24 * 60 * 60)
    time %= (24 * 60 * 60)
    hrs = time // (60 * 60)
    time %= (60 * 60)
    mins = time // 60
    time %= 60
    secs = time
    msg = f"Training completed in {days:.0f} days: {hrs:.0f} hours: {mins:.0f} minutes: {secs:.0f} seconds"
    print(msg)
    return msg