{"id":13684686,"url":"https://github.com/mattt/CupertinoYankee","last_synced_at":"2025-05-01T00:32:33.687Z","repository":{"id":3029396,"uuid":"4049516","full_name":"mattt/CupertinoYankee","owner":"mattt","description":"An NSDate Category With Locale-Aware Calculations for Beginning \u0026 End of Day, Week, Month, and Year","archived":true,"fork":false,"pushed_at":"2019-06-13T16:45:13.000Z","size":38,"stargazers_count":304,"open_issues_count":0,"forks_count":24,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-14T21:35:49.308Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mattt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-04-17T06:15:42.000Z","updated_at":"2025-01-17T15:20:59.000Z","dependencies_parsed_at":"2022-08-21T03:20:52.968Z","dependency_job_id":null,"html_url":"https://github.com/mattt/CupertinoYankee","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattt%2FCupertinoYankee","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattt%2FCupertinoYankee/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattt%2FCupertinoYankee/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattt%2FCupertinoYankee/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattt","download_url":"https://codeload.github.com/mattt/CupertinoYankee/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251802943,"owners_count":21646304,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T14:00:36.987Z","updated_at":"2025-05-01T00:32:33.337Z","avatar_url":"https://github.com/mattt.png","language":"Objective-C","funding_links":[],"categories":["Objective-C","etc"],"sub_categories":[],"readme":"# A Cupertino Yankee in Scott Forstall's Court\n\n**An NSDate Category With Locale-Aware Calculations for Beginning \u0026 End of Day, Week, Month, and Year**\n\n\u003e This library is no longer maintained.\n\u003e In iOS 7.0+ and macOS 10.9+,\n\u003e use [`Calendar.range(of:in:for:)`](https://developer.apple.com/documentation/foundation/calendar/2293059-range) instead.\n\n## Usage\n\n```objective-c\nNSLog(@\"Current Time: %@\", date);\nNSLog(@\"Beginning of Day:%@\", [date beginningOfDay]);\nNSLog(@\"End of Day:%@\", [date endOfDay]);\nNSLog(@\"Beginning of Week:%@\", [date beginningOfWeek]);\nNSLog(@\"End of Week:%@\", [date endOfWeek]);\nNSLog(@\"Beginning of Month:%@\", [date beginningOfMonth]);\nNSLog(@\"End of Month:%@\", [date endOfMonth]);\nNSLog(@\"Beginning of Year:%@\", [date beginningOfYear]);\nNSLog(@\"End of Year:%@\", [date endOfYear]);\n```\n\nResult (Note the Time Zone and Daylight Savings Offsets)\n\n```\nCurrent Time: 2013-10-19 13:29:26 +0000\nBeginning of Day: 2013-10-18 22:00:00 +0000\nEnd of Day: 2013-10-19 21:59:59 +0000\nBeginning of Week: 2013-10-12 22:00:00 +0000\nEnd of Week: 2013-10-19 21:59:59 +0000\nBeginning of Month: 2013-09-30 22:00:00 +0000\nEnd of Month: 2013-10-31 22:59:59 +0000\nBeginning of Year: 2012-12-31 23:00:00 +0000\nEnd of Year: 2013-12-31 22:59:59 +0000\n```\n\n## License\n\nMIT\n\n## Contact\n\nMattt ([@mattt](https://twitter.com/mattt))\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattt%2FCupertinoYankee","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattt%2FCupertinoYankee","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattt%2FCupertinoYankee/lists"}