| package com.ruoyi.common.utils; | 
|   | 
| import java.util.concurrent.TimeUnit; | 
|   | 
| public class TimeConverter { | 
|   | 
|     public static String convertSecondsToHMS(Long seconds) { | 
|         long hours = TimeUnit.SECONDS.toHours(seconds); | 
|         long minutes = TimeUnit.SECONDS.toMinutes(seconds) % 60; | 
|         long remainingSeconds = seconds % 60; | 
|         return String.format("%02d",hours) + ":" + String.format("%02d",minutes) + ":" + String.format("%02d",remainingSeconds); | 
|     } | 
|   | 
| //    public static void main(String[] args) { | 
| //        Long totalSeconds = 44871L; | 
| //        String hms = convertSecondsToHMS(totalSeconds); | 
| //        System.out.println(hms); | 
| //    } | 
| } |