Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shmoopi/saholidays
NSDate Category that tells you if a date falls on a holiday, during a holiday season, or on a weekend
https://github.com/shmoopi/saholidays
Last synced: 6 days ago
JSON representation
NSDate Category that tells you if a date falls on a holiday, during a holiday season, or on a weekend
- Host: GitHub
- URL: https://github.com/shmoopi/saholidays
- Owner: Shmoopi
- Created: 2013-11-14T16:57:32.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-11-14T17:30:40.000Z (about 11 years ago)
- Last Synced: 2023-03-30T16:04:33.595Z (over 1 year ago)
- Language: Objective-C
- Size: 121 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
SAHolidays
==========SAHolidays is an NSDate Category that tells you if a date falls on a holiday, during a holiday season, or on a weekend. It's designed for developers wanting to easily determine if a date is a holiday in order to incorporate specific holday features.
The category includes the dates each holiday falls on for the next 7 years, until 2020, and can be easily customized to support further into the future.
Sample use:
```
NSLog(@"Is today a holiday: %u", [[NSDate date] isHoliday]);
```The category includes 24 holidays including:
* New Years Day
* Martin Luther King Jr's Birthday
* Groundhog Day
* Valentine's Day
* President's Day
* St. Patrick's Day
* April Fool's Day
* Good Friday
* Easter
* Earth Day
* Mother's Day
* Memorial Day
* Flag Day
* Father's Day
* Independence Day
* Labor Day
* Columbus Day
* Halloween
* Veteran's Day
* Thanksgiving
* Pearl Harbor Day
* Christmas Eve
* Christmas
* Kwanzaa
* New Years EveAnd 4 holiday seasons:
* Easter Season
* Halloween Season
* Thanksgiving Season
* Christmas Season