LoginSignup
4
4

More than 5 years have passed since last update.

時間差分取得

Last updated at Posted at 2014-06-26

時間差分取得方法

取得結果は秒(小数点以下はミリ秒)で取得できる。

NSDate *past = [NSDate new];
NSDate *now = [NSDate new];
float diffSec = [now timeIntervalSinceDate:past];

4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4