-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from haithngn/develop
- Update readme file
- Loading branch information
Showing
2 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,27 @@ | ||
# SoluDate | ||
# SoluDate | ||
Sonar Date to Lunar Date Converter | ||
|
||
### Features | ||
- [x] Convert from Sonar date (Date) to Lunar date | ||
- [x] Convert from Lunar date (LuDate) to Sonar date | ||
- [ ] Convert from Lunar date (Date) to Sonar date | ||
|
||
### Installation | ||
* Carthage | ||
> github "haithngn/SoluDate" | ||
### Requirements | ||
* iOS 8.0+ | ||
* Xcode 8.0+ | ||
|
||
### Usage | ||
```swift | ||
let date: LuDate = SoluDateConverter.lunarDateFromSonarDate(Date()) | ||
|
||
print("Lunar Date \(date.day) \(date.month) \(date.year)") | ||
``` | ||
### Thanks | ||
* Converting algorithm from https://www.informatik.uni-leipzig.de/~duc/amlich/calrules.html | ||
* Thanks @mattneub guide me to port Java code to Swift correctly. | ||
### License | ||
Licensed under the MIT license. See LICENSE for details. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters