James Raitsev
James Raitsev

Reputation: 96391

How to calculate "time until date"?

I'd like to calculate how many "days, minutes, second" are left until some date. How might one do this using Objective-C?

Upvotes: 0

Views: 421

Answers (1)

nall
nall

Reputation: 16139

You don't mention the exact environment you're in, but I'll assume you have access to the Foundation framework. I think you want to review Calculating Temporal Differences from the Date and Time Programming Guide.

Upvotes: 2

Related Questions