我怎样才能转换NSTimeInterval成NSDate?把它想象成一个秒表.我希望初始日期是00:00:00,我有一个NSTimeIntervalX秒.
NSTimeInterval
NSDate
我需要像这样做,因为NSTimeInterval需要通过使用lround舍入转换为int ,然后转换NSDate为使用NSDateFormatter将其转换为字符串.
lround
NSDateFormatter
objective-c nsdate nsdateformatter nstimeinterval
nsdate ×1
nsdateformatter ×1
nstimeinterval ×1
objective-c ×1