« Adam Lisagor on The Pipeline | Main | Kangaroo Lake »
10:20PM

An NSString category for nicely formatting NSTimeIntervals

I had an NSTimeInterval that I needed to display, and I couldn't find an easy way to do it. Luckily, Objective-C ha s categories, so it was just a matter of writing an NSString category. I posted a gist on GitHub; if you've got a better way to do it, please let me know!

PrintView Printer Friendly Version

EmailEmail Article to Friend

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>