Is it possible you could make that into a c function that uses no objects except for the NSString that is returned? I know the amount of seconds will not be over a day.
Main Topics
Browse All TopicsI 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 :)
Max
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I can not see why that could be a requirement. You have to create the NSString somehow. So why not using is as I did? However you can use any C function like e.g
char formatted_string_buf[20];
sprintf("formatted_string_
then you create the NSString from the C buffer.
Regards
Friedrich
Business Accounts
Answer for Membership
by: fridomPosted on 2008-02-11 at 08:28:33ID: 20867623
I guess you have to write something yourself, if you do not find a special class for handling that stuff. May be that OpenGroupware has support in that area.
Regards
Friedrich
Select allOpen in new window