Skip to content

Instantly share code, notes, and snippets.

@udonchan
Created March 17, 2010 03:49
Show Gist options
  • Save udonchan/334889 to your computer and use it in GitHub Desktop.
Save udonchan/334889 to your computer and use it in GitHub Desktop.
旧暦を知る
@implementation Qreki
+(NSString *)month2Qmonth:(int)month {
switch (month) {
case 1:
return @"睦月";
case 2:
return @"如月";
case 3:
return @"弥生";
case 4:
return @"卯月";
case 5:
return @"皐月";
case 6:
return @"水無月";
case 7:
return @"文月";
case 8:
return @"葉月";
case 9:
return @"長月";
case 10:
return @"神無月";
case 11:
return @"霜月";
case 12:
return @"師走";
default:
return @"";
}
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment