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


assume all times is NSDate

NSDate *time1, *time2, *time3;

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

2

solved convert time into milliseconds and compare them [closed]