Merge pull request #100 from basememara/ios-refine Remove unnecessary timeZone for ISO formatter
Merge pull request #100 from basememara/ios-refine
Remove unnecessary timeZone for ISO formatter
Intuitive date handling in Swift
Date(era: 235, year: 26, month: 8, day: 14, hour: 20, minute: 25, second: 43, nanosecond: 0, on: Calendar(identifier: .japanese)) Date(year: 2014, month: 8, day: 14, hour: 20, minute: 25, second: 43, nanosecond: 0) Date(year: 2014, month: 8, day: 14, hour: 20, minute: 25, second: 43) Date(year: 2014, month: 8, day: 14) Date.today() Date.yesterday() Date.tomorrow()
now + 1.year now - 2.months now + (3.weeks - 4.days + 5.hours) 1.year.later 1.year.ago
now.changed(year: 2014) now.changed(weekday: 1) now.truncated([.minute, .second, .nanosecond]) now.truncated(from: .day)
now.stringIn(dateStyle: .long, timeStyle: .medium) now.dateString(in: .medium) now.timeString(in: .short) 3.days.string(in: .full)
"2014/8/14".date(inFormat: "yyyy/MM/dd") "2014-08-14T20:25:43+0900".dateInISO8601Format()
# Podfile pod "Timepiece"
# Cartfile github "naoty/Timepiece"
Timepiece is available under the MIT license. See the LICENSE file for more info.
naoty
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
Timepiece

Intuitive date handling in Swift
Features
Requirements
Usage
Initialization
Calculation
Change
Formating
Parsing
Installation
CocoaPods
Carthage
Contribution
License
Timepiece is available under the MIT license. See the LICENSE file for more info.
Author
naoty