Latest 0.1.1
Homepage https://github.com/bluemix/ArabicTimeAgo
License MIT
Platforms ios 8.0
Authors

[![CI Status](http://img.shields.io/travis/Abdulmomen Kadum عبدالمؤمن كاظم/ArabicTimeAgo.svg?style=flat)](https://travis-ci.org/Abdulmomen Kadum عبدالمؤمن كاظم/ArabicTimeAgo)
Version
License
Platform

Screenshot

Usage

import ArabicTimeAgo
...

let itemDateStr = "2017-01-19 09:12:07"
let formatter = DateFormatter()
formatter.dateFormat = "yyyy-MM-dd HH:mm:ss"

if let date = formatter.date(from: itemDateStr) {
  print(TimeAgo.calculate(date: date, isAr: true))  // قبل 13 ساعة
  print(TimeAgo.calculate(date: date, isAr: false)) // 13 hours ago
}

Requirements

Swift 3

Installation

ArabicTimeAgo is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "ArabicTimeAgo"

Author

Abdulmomen Kadum عبدالمؤمن كاظم, [email protected]

License

ArabicTimeAgo is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "ArabicTimeAgo",
    "version": "0.1.1",
    "summary": "Arabic and English time ago in Swift",
    "description": "2017-01-19 09:12:07 to '12 hours ago' or 'u0642u0628u0644 13 u0633u0627u0639u0629'",
    "homepage": "https://github.com/bluemix/ArabicTimeAgo",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Abdulmomen Kadum u0639u0628u062fu0627u0644u0645u0624u0645u0646 u0643u0627u0638u0645": "[email protected]"
    },
    "source": {
        "git": "https://github.com/bluemix/ArabicTimeAgo.git",
        "tag": "0.1.1"
    },
    "social_media_url": "https://twitter.com/bluemix2",
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "ArabicTimeAgo/Classes/**/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This