public static PersianDateTime Parse(HijriDateTime dateTimeTime)
 {
     return dateTimeTime.ToPersianDate();
 }
 private void Set(HijriDateTime dateTime)
 {
     Year = dateTime.Year;
     Month = dateTime.Month;
     Day = dateTime.Day;
     Hour = dateTime.Hour;
     Minute = dateTime.Minute;
     Second = dateTime.Second;
 }
 public PersianDateTime(HijriDateTime dateTimeTime)
 {
     Set(dateTimeTime.ToPersianDate());
 }
        public static HijriDateTime Parse(DateTime dateTime)
        {
            var cal = new HijriCalendar();
            var result = new HijriDateTime
            {
                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;
        }