To run the example project, clone the repo, and run pod install
from the Example directory first.
- Swift 4.x
- iOS 8.0+
FBMessengerTimeAgo is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "FBMessengerTimeAgo"
Same day = "8:00 pm" // date time
<= 6 days = "Fri" // day
> 7 days and same year = "Oct 14" // month and day
> 1 year = "10/14/2015" // short date
Import module
import FBMessengerTimeAgo
Call formattedTimeAgo() where date is a past date from now
date.formattedTimeAgo()
- If you found a bug, open an issue.
- If you have a feature request, open an issue.
- If you want to contribute, submit a pull request.
FBMessengerTimeAgo is available under the MIT license. See the LICENSE file for more info.