Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yockow/swiftjapanesenationalholidays
Get Japanese National Holiday Names in Swift.
https://github.com/yockow/swiftjapanesenationalholidays
holidays japan swift
Last synced: about 1 month ago
JSON representation
Get Japanese National Holiday Names in Swift.
- Host: GitHub
- URL: https://github.com/yockow/swiftjapanesenationalholidays
- Owner: YOCKOW
- License: mit
- Created: 2020-09-10T14:58:13.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-03T09:02:00.000Z (4 months ago)
- Last Synced: 2024-10-22T10:14:44.466Z (3 months ago)
- Topics: holidays, japan, swift
- Language: Swift
- Homepage:
- Size: 29.3 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.