Latest 0.0.3
Homepage https://github.com/tnantoka/Symday
License MIT
Platforms ios 9.2
Frameworks Foundation
Authors

Build Status
Carthage compatible

Installation

Carthage

// Cartfile
github "tnantoka/Symday"

CocoaPods

# Podfile
pod 'Symday'

Swift Package Manager

// Package.swift
.Package(url: "https://github.com/tnantoka/Symday.git", majorVersion: 0),

Usage

import Symday

let date = NSDate(timeIntervalSince1970: 1_279_410_659)
Symday.format(date) // Jul 17, 2010
Symday.format(date, template: "MdEEE") // Sat, 7/17
Symday(locale: NSLocale(localeIdentifier: "ja_JP")).format(date) // 2010年7月17日

References

http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_Patterns

Author

@tnantoka

Latest podspec

{
    "name": "Symday",
    "version": "0.0.3",
    "summary": "A simple wrapper of dateFormatFromTemplate.",
    "description": "A cross platform date formatting framework for iOS and Linux.",
    "homepage": "https://github.com/tnantoka/Symday",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "tnantoka": "[email protected]"
    },
    "social_media_url": "https://twitter.com/tnantoka",
    "platforms": {
        "ios": "9.2"
    },
    "source": {
        "git": "https://github.com/tnantoka/Symday.git",
        "tag": "v0.0.3"
    },
    "source_files": "Symday/*.{h,m,swift}",
    "public_header_files": "Symday/*.h",
    "frameworks": "Foundation"
}

Pin It on Pinterest

Share This