Top "Nsdate" questions

NSDate objects represent a single point in time.

NSTimeInterval to NSDate

How can I convert a NSTimeInterval to NSDate? Think of it like a stopwatch. I want the initial date to …

objective-c nsdate nsdateformatter nstimeinterval
How to use NSTimeInterval properly?

I'm new to Xcode and I have the following problem: I want a method that gives me the time that …

objective-c ios cocoa-touch nsdate nstimeinterval
Comparing two NSDates and ignoring the time component

What is the most efficient/recommended way of comparing two NSDates? I would like to be able to see if …

iphone objective-c nsdate
How to Check if an NSDate occurs between two other NSDates

I am trying to figure out whether or not the current date falls within a date range using NSDate. For …

objective-c cocoa cocoa-touch datetime nsdate
Converting date between timezones swift

I have a date stored on my online server database which is in GMT. I load the date and convert …

ios swift timezone nsdate gmt
How to compare two NSDate objects in objective C

I have objects of Date type. I want to compare them, and I have written an if condition in the …

ios nsdate
How Do I write a Timer in Objective-C?

I am trying to make a stop watch with NSTimer. I gave the following code: nst_Timer = [NSTimer scheduledTimerWithTimeInterval:0.001 target:…

iphone objective-c timer nsdate nstimer
NSDate() vs NSDate.date() in Swift

I´m following along with the Bloc.io Swiftris tutorial where they initialize a date by: lastTick = NSDate.date() Which …

ios objective-c swift cocoa nsdate
NSDateFormatter not showing full month name, only single digit number

Not sure what the issue is, but instead of getting a month name "July", I get "07". dateFormat = [[NSDateFormatter alloc] init]; […

ios nsdate nsdateformatter
What unit of time does timeIntervalSinceDate return?

What unit of time does timeIntervalSinceDate return? Is it seconds, milliseconds or something else? The documentation says that it returns …

objective-c nsdate