Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yockow/swiftjapanesenationalholidays
https://github.com/yockow/swiftjapanesenationalholidays
Last synced: 24 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/yockow/swiftjapanesenationalholidays
- Owner: YOCKOW
- License: mit
- Created: 2020-09-10T14:58:13.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-10-01T09:04:14.000Z (about 2 years ago)
- Last Synced: 2023-03-02T05:27:00.589Z (over 1 year ago)
- Language: Swift
- Size: 26.4 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# SwiftJapaneseNationalHolidays
`SwiftJapaneseNationalHolidays` provides some functions related to National Holidays in Japan.
# Requirements
- Swift 5, 6
- macOS or Linux# Usage
```Swift
import JapaneseNationalHolidays// With a simple function
print(japaneseNationalHolidayName(forYear: 2020, month: 7, day: 24)!) // -> "スポーツの日"// With `Date`
let date = Date(timeIntervalSince1970: 1600619025.0) // 2020-09-21 01:23:45 JST
print(date.japaneseNationalHolidayName!) // -> "敬老の日"```
# License
MIT License.
See "LICENSE.txt" for more information.