Sonar Date to Lunar Date Converter
- Convert from Sonar date (Date) to Lunar date
- Convert from Lunar date (Date) to Sonar date
- Carthage
github "haithngn/SoluDate"
- iOS 8.0+
- Xcode 8.0+
let date: Date? = SoluDateConverter.lunarDateFromSonarDate(Date())
print("Lunar Date \(date)")
- Converting algorithm from https://www.informatik.uni-leipzig.de/~duc/amlich/calrules.html
- Thanks @mattneub guide me to port Java code to Swift correctly.
Licensed under the MIT license. See LICENSE for details.