ISO8601 alternatives and similar libraries
Based on the "Text" category.
Alternatively, view ISO8601 alternatives based on common mentions on social networks and blogs.
-
PhoneNumberKit
A Swift framework for parsing, formatting and validating international phone numbers. Inspired by Google's libphonenumber. -
ZSSRichTextEditor
A beautiful rich text WYSIWYG editor for iOS with a syntax highlighted source view -
FontAwesomeKit
Icon font library for iOS. Currently supports Font-Awesome, Foundation icons, Zocial, and ionicons. -
Atributika
Easily build NSAttributedString by detecting and styling HTML-like tags, hashtags, mentions, RegExp or NSDataDetector patterns. -
Highlighter
Highlight whatever you want! Highlighter will magically find UI objects such as UILabel, UITextView, UITexTfield, UIButton in your UITableViewCell or other Class. -
NSStringEmojize
A category on NSString to convert Emoji Cheat Sheet codes to their equivalent Unicode characters. -
Mustard
Mustard is a Swift library for tokenizing strings when splitting by whitespace doesn't cut it. -
GoogleMaterialDesignIcons
Google Material Design Icons Font for iOS. -
Heimdall
Heimdall is a wrapper around the Security framework for simple encryption/decryption operations. -
AttributedTextView
Easiest way to create an attributed UITextView with support for multiple links (including hashtags and mentions).
Get performance insights in less than 4 minutes
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest. Visit our partner's website for more details.
Do you think we are missing an alternative of ISO8601 or a related project?
README
ISO8601
❤️ Support my apps ❤️
- Push Hero - pure Swift native macOS application to test push notifications
- PastePal - Pasteboard, note and shortcut manager
- Quick Check - smart todo manager
- Alias - App and file shortcut manager
- My other apps
❤️❤️😇😍🤘❤️❤️
ISO8601 in Swift
[](Screenshots/Banner.png)
Description
My answer on How do I get ISO 8601 date in iOS?
Usage
Formatter
Create a new formatter
var config = Config()
config.timeZoneIdentifier = " +0000"
let formatter = Formatter(config: config)
or use the default
Formatter.shared
Convert string to date
Formatter.shared.date(string: "2016-04-08T10:25:30Z") // extended format with Z
Formatter.shared.date(string: "20160408 10:25:30Z") // basic format with Z
Formatter.shared.date(string: "2016-04-08 112530 +010000") // extended format with timezone offset
Formatter.shared.date(string: "2016-04-08 202530GMT+1000") // extended format with GMT
Formatter.shared.date(string: "2016-04-08T10:25:30.000Z") // milliseconds
Convert date to string
let date = Date(timeIntervalSince1970: 1460111130)
Formatter.shared.string(date: date) // 2016-04-08T10:25:30Z // timezone Z
Installation
ISO8601 is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'ISO8601', git: 'https://github.com/onmyway133/ISO8601'
ISO8601 is also available through Carthage. To install just write into your Cartfile:
github "onmyway133/ISO8601"
Author
Khoa Pham, [email protected]
Contributing
We would love you to contribute to ISO8601, check the CONTRIBUTING file for more info.
License
ISO8601 is available under the MIT license. See the LICENSE file for more info.
*Note that all licence references and agreements mentioned in the ISO8601 README section above
are relevant to that project's source code only.