Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
Class
PrettyFormatter.xcodeproj
PrettyFormatter
README.md
exampleImage.png

README.md

PrettyFormatter

##Introduction

screenshot

This project shows you how to use NSCalendar and NSDateComponents, and set the date formate for NSDateFormatter.

For more information about date format:
Unicode Date Format Patterns

PrettyFormatter class contains two kinds of format:

  • Twitter time format
  • Facebook time format

##How to use Just Import PrettyFormatter.h

#import "PrettyFormatter.h"

And use it's class methods. For example:

label3.text = [PrettyFormatter twitterFormat:[NSDate dateWithTimeIntervalSinceNow:-60 * 60]];

It's very easy to use;

##Requirements

  • iOS >= 4.3
  • non-ARC

View the original post