/**
     * 将long值转换为以小时计算的格式
     * @param mss
     * @return
     */
    public static String formatLongTime(long mss) {
        String DateTimes = null;
        long hours = (mss % ( 60 * 60 * 24)) / (60 * 60);
        long minutes = (mss % ( 60 * 60)) /60;
        long seconds = mss % 60;

        DateTimes=String.format("%02d:", hours)+ String.format("%02d:", minutes) + String.format("%02d", seconds);
        String.format("%2d:", hours);
        return DateTimes;
    }

 

相关文章:

  • 2021-05-27
  • 2022-12-23
  • 2022-12-23
  • 2021-12-27
  • 2021-11-28
  • 2021-08-16
  • 2021-04-14
猜你喜欢
  • 2022-01-25
  • 2022-12-23
  • 2022-12-23
  • 2022-02-20
  • 2022-12-23
  • 2022-12-23
  • 2021-06-18
相关资源
相似解决方案