Latest 0.2.0
Homepage https://github.com/Haroenv/NewBase60
License MIT
Platforms ios 7.0, osx 10.9
Frameworks XCTest

CI Status
Carthage compatible
Version

A port of Tantek Çelik’s NewBase60 in Swift

Usage

import NumToBase60

NumToBase60.IntToSxg(123) // 23
NumToBase60.IntToSxgF(123123, formatLength: 4) // 0_C3
NumToBase60.SxgToInt("f1ex") // 8645997
NumToBase60.DateToSxg(NSDate(timeIntervalSinceReferenceDate: 0)) // 38i
NumToBase60.DateToSxgF(NSDate(timeIntervalSinceReferenceDate: 0), formatLength: 6) // 00038i
NumToBase60.SxgToDate("38i") // 01 Jan 2001 01:00"
NumToBase60.SxgToISO("37j") // 2000-11-03T01:00:00+01:00

Installation

Carthage

NewBase60 is available through Carthage. To install it, simply add the following line to your Cartfile:

github "Haroenv/NewBase60"

Cocoapods

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

pod "NewBase60"

Author

@Haroenv

Note: this is the first Swift Package I created. Help is very welcome

Thanks

Tantek Çelik’s NewBase60.

http://tantek.com/

http://tantek.pbworks.com/NewBase60

Lightly translated from the original CASSIS to CommonsJS- & Node.js-aware JavaScript by Edward O’Connor [email protected].

Then translated once more to a more usable Node.js module that implements Date conversion similar to that of Shane Becker’s NewBase60 ( https://github.com/veganstraightedge/new_base_60 ).
NewBase60.js by Michael Owens [email protected]. Published on NPM as newbase60 ( https://npmjs.org/package/newbase60 ).

Translated to Swift by Haroen Viaene on GitHub as https://github.com/Haroenv/NewBase60

Released under MIT

License

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

Latest podspec

{
    "name": "NewBase60",
    "version": "0.2.0",
    "license": "MIT",
    "summary": "A port of Tantek u00c7elik's NewBase60 in Swift",
    "homepage": "https://github.com/Haroenv/NewBase60",
    "authors": "Haroen Viaene",
    "source": {
        "git": "https://github.com/Haroenv/NewBase60.git",
        "tag": "v0.2.0"
    },
    "platforms": {
        "ios": "7.0",
        "osx": "10.9"
    },
    "frameworks": "XCTest",
    "source_files": "NewBase60/**/*.swift"
}

Pin It on Pinterest

Share This