Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Chandlerdea authored Dec 7, 2017
1 parent 428333f commit fee786a
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,6 @@ if let countdownString: String = transformer.transformTimeInterval(secondsToFutu
```

### DateToTimestampTransformer

`DateToTimestampTransformer` transforms a `Date` to a `String` timestamp. You would use this for showing a timestamp like `3 minutes ago`. Here's an example:

```
let dateInPast: Date = ...
let transformer: DateToTimestampTransformer = DateToTimestampTransformer()
if let timestamp: String = transformer.transformDate(dateInPast) {
// "4 minutes ago"
}
```

## Support

If you find any bugs, or have any critiques, please open a PR and I will fix them as soon as I can. And if you feel the need to add some more tests, you're more than welcome!

0 comments on commit fee786a

Please sign in to comment.