Accurate time prediction is critical to the success of ship block manufacturing. However, the emergence of new ship types with limited historical data poses challenges to existing prediction methods. In response, this paper proposes a novel framework for ship block manufacturing time prediction, integrating clustering and the transfer learning algorithm. Firstly, the concept of distributed centroids was innovatively adopted to achieve the clustering of categorical attribute features. Secondly, abundant historical data from other types of blocks (source domain) were incorporated into the neural network model to explore the effects of block features on manufacturing time, and the model was further transferred to blocks with limited data (target domain). Leveraging the similarities and differences between source and target domain blocks, actions involving freezing and fine-tuning parameters were adopted for the predictive model development. Despite a small sample size of only 80, our proposed block time prediction method achieves an impressive mean absolute percentage error (MAPE) of 8.62%. In contrast, the MAPE for the predictive model without a transfer learning algorithm is notably higher at 14.97%. Experimental validation demonstrates the superior performance of our approach compared to alternative methods in scenarios with small sample datasets. This research addresses a critical gap in ship block manufacturing time prediction.