阅读背景:

如何在swift中格式化用户显示(社交网络)的时间间隔?

来源:互联网 

I have a time interval, say, 12600, which is equivalent to 3 hours 30 minutes. How could I format any such time interval so that only the highest part of the interval (for example in this case figure, the hours) is kept and have the correct locale abbreviation be appended to the number. For example 10m (10 minutes), 3d (3 days), 1y (1 years).I have a time interval, say, 12600, which is eq




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: