コード例 #1
0
 public EthiopianDate(int year, int month, int day)
 {
     _dateTime = EthiopianDateConverter.ToGregorianDate(year, month, day);
     _month    = month;
     _day      = day;
     _year     = year;
 }
コード例 #2
0
        public void FromGregorianDate(DateTime dateTime)
        {
            EthiopianDate ethiopianDate = EthiopianDateConverter.ToEthiopianDate(dateTime);

            _month = ethiopianDate.Month;
            _day   = ethiopianDate.Day;
            _year  = ethiopianDate.Year;
        }
コード例 #3
0
        public EthiopianDate(DateTime dateTime)
        {
            _dateTime = dateTime;
            EthiopianDate ethiopianDate = EthiopianDateConverter.ToEthiopianDate(dateTime);

            _month = ethiopianDate.Month;
            _day   = ethiopianDate.Day;
            _year  = ethiopianDate.Year;
        }
コード例 #4
0
 public override DateTime ToDateTime(int year, int month, int day, int hour, int minute, int second, int millisecond, int era)
 {
     return(EthiopianDateConverter.ToGregorianDate(year, month, day));
 }