Advertisement

02.10.2008 at 10:01AM PST, ID: 23151538
[x]
Attachment Details

NSTimeInterval to minutes and seconds

Asked by TheMaximumWeasel in Cocoa Programming Language, Objective-C Programming Language, Apple Programming

I have an integer in seconds, that when converted to minutes is less than 60 minutes (So no need to worry about hours). I want to convert the seconds string to a format like this:
int seconds = 352;

...

NSString *time = @"05:52";

NOTE: minutes must have the 0 in front of it if its less than 10 minutes. Same for seconds obviously :)

MaxStart Free Trial
[+][-]02.11.2008 at 08:28AM PST, ID: 20867623

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Cocoa Programming Language, Objective-C Programming Language, Apple Programming
Sign Up Now!
Solution Provided By: fridom
Participating Experts: 1
Solution Grade: A
 
 
[+][-]02.11.2008 at 02:48PM PST, ID: 20871091

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.12.2008 at 12:19AM PST, ID: 20873151

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.12.2008 at 10:19PM PST, ID: 20882072

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628