
namespace Hitsuji.Framework.Utils
{
    public class DateUtil
    {
        public static string GetEto(string year)
        {
            int value = 0;
            int temp = 0;
            if (int.TryParse(year, out temp)) value = temp;
            if (value == 0) return "";

            value = value % 12;
            return value == 0 ? "さる" :
                   value == 1 ? "とり" :
                   value == 2 ? "いぬ" :
                   value == 3 ? "い" :
                   value == 4 ? "ね" :
                   value == 5 ? "うし" :
                   value == 6 ? "とら" :
                   value == 7 ? "う" :
                   value == 8 ? "たつ" :
                   value == 9 ? "み" :
                   value == 10 ? "うま" :
                   value == 11 ? "ひつじ" :
                    "";
        }

    }
}
