[Solved] convert time into milliseconds and compare them [closed]

[ad_1]

assume all times is NSDate

NSDate *time1, *time2, *time3;

if (time3.timeIntervalSince1970 >= time1.timeIntervalSince1970 && time1.timeIntervalSince1970 <= time1.timeIntervalSince1970)
{
    NSLog(@"YES");
}

2

[ad_2]

solved convert time into milliseconds and compare them [closed]