private void Set(PersianDateTime dateTime)
 {
     Year = dateTime.Year;
     Month = dateTime.Month;
     Day = dateTime.Day;
     Hour = dateTime.Hour;
     Minute = dateTime.Minute;
     Second = dateTime.Second;
 }
 public static HijriDateTime Parse(PersianDateTime dateTimeTime)
 {
     return dateTimeTime.ToHijriDate();
 }
        public static PersianDateTime Parse(DateTime dateTime)
        {
            var cal = new PersianCalendar();
            var result = new PersianDateTime
            {
                Year = cal.GetYear(dateTime),
                Month = cal.GetMonth(dateTime),
                Day = cal.GetDayOfMonth(dateTime),
                Hour = cal.GetHour(dateTime),
                Minute = cal.GetMinute(dateTime),
                Second = cal.GetSecond(dateTime)
            };

            return result;
        }
 public HijriDateTime(PersianDateTime dateTimeTime)
 {
     Set(dateTimeTime.ToHijriDate());
 }