Skip to content

Instantly share code, notes, and snippets.

@muhku
Created August 22, 2010 07:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save muhku/543456 to your computer and use it in GitHub Desktop.
Save muhku/543456 to your computer and use it in GitHub Desktop.
- (id) init{
BOOL sundayAsFirst = YES;
CFCalendarRef currentCalendar = CFCalendarCopyCurrent();
if (CFCalendarGetFirstWeekday(currentCalendar) == 2) {
sundayAsFirst = NO;
}
CFRelease(currentCalendar);
return [self initWithSundayAsFirst:sundayAsFirst];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment