//转换成时分秒

- (NSString *)timeFormatted:(int)totalSeconds
{

    int seconds = totalSeconds % 60; 
    int minutes = (totalSeconds / 60) % 60; 
    int hours = totalSeconds / 3600; 

    return [NSString stringWithFormat:@"%02d:%02d:%02d",hours, minutes, seconds]; 

 

//转换成当前时刻

- (NSString *)timeFormatted:(int)totalSeconds

}

相关文章:

  • 2022-12-23
  • 2022-02-07
  • 2021-09-28
  • 2022-12-23
  • 2021-06-08
  • 2021-12-18
  • 2022-12-23
猜你喜欢
  • 2021-09-19
  • 2021-11-10
  • 2022-02-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案