文件名称:Swift日期扩展SwiftDateExtension.zip
文件大小:15KB
文件格式:ZIP
更新时间:2022-08-07 07:38:12
开源项目
SwiftDateExtension 是 Swift 日期扩展。简单示例://-- Adding time units: let date1: NSDate = NSDate().plusMonths(2).minusDays(5).plusSeconds(5) let date2: NSDate = NSDate().plusYears(1).minusMonths(6) //-- Calculating difference between dates: let weeksBetween = NSDate.monthsBetween(date1: someDate, date2: someOtherDate) let monthsBetween = NSDate.weeksBetween(date1: someDate, date2: someOtherDate)
【文件预览】:
SwiftDateExtension-master
----.gitignore(214B)
----README.md(2KB)
----SwiftDateExtension.podspec(539B)
----LICENSE(1KB)
----DateExtension()
--------AppDelegate.swift(1KB)
--------DateExtension.swift(7KB)
--------Images.xcassets()
--------Info.plist(860B)
----DateExtensionTests()
--------DateExtensionTests.swift(5KB)
--------Info.plist(733B)
----DateExtension.xcodeproj()
--------project.xcworkspace()
--------project.pbxproj(15KB)
--------xcuserdata()