For three months I am unable to finish this work. I need help. I am stuck and wasting time. I am having difficult time explaining this. Anyways, I have this code right here.
NSDateFormatter *detailsTimeFormatter = [[NSDateFormatter alloc] init];
[detailsTimeFormatter setTimeStyle:NSDateFormatterShortStyle];
NSLog(@"%@",[[detailsTimeFormatter stringFromDate:[NSDate date]] lowercaseString]);
//if (INSERT CODE HERE) { ///<-- Detect every Hours and Minutes
// NSLog(@"True");
//}else{
// NSLog(@"False");
//}
I need a code that can detect changes in every minutes.
I'm not sure how you do it. I like to give an example.
1:00 am -> NSLog(@"True");
1:00:10 am --> NSLog(@"False");
1:00:11 am --> NSLog(@"False");
1:00:12 am --> NSLog(@"False");
1:00:## am --> NSLog(@"False");
1:01 am --> NSLog(@"True");
1:01:01 am --> NSLog(@"False");
1:01:02 am --> NSLog(@"False");
1:01:03 am --> NSLog(@"False");
1:01:## am --> NSLog(@"False");
1:01:59 am --> NSLog(@"False");
1:02 am --> NSLog(@"True");
1:02:01 am --> NSLog(@"False");
1:02:02 am --> NSLog(@"False");
1:02:03 am --> NSLog(@"False");
1:02:## am --> NSLog(@"False");
1:02:59 am --> NSLog(@"False");
1:03 am --> NSLog(@"True");