Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetHebrewDayOfNM()

static bool System.DateTimeParse.GetHebrewDayOfNM ( ref DateTimeResult result,
ref DateTimeRawInfo raw,
DateTimeFormatInfo dtfi )
inlinestaticprivate

Definition at line 1649 of file DateTimeParse.cs.

1650 {
1651 if (!GetMonthDayOrder(dtfi.MonthDayPattern, out var order))
1652 {
1653 result.SetFailure(ParseFailureKind.FormatWithParameter, "Format_BadDatePattern", dtfi.MonthDayPattern);
1654 return false;
1655 }
1656 result.Month = raw.month;
1657 if ((order == 7 || order == 6) && result.calendar.IsValidDay(result.Year, result.Month, raw.GetNumber(0), result.era))
1658 {
1659 result.Day = raw.GetNumber(0);
1660 return true;
1661 }
1662 result.SetBadDateTimeFailure();
1663 return false;
1664 }
static bool GetMonthDayOrder(string pattern, out int order)

References System.DateTimeParse.GetMonthDayOrder(), and System.Globalization.DateTimeFormatInfo.MonthDayPattern.

Referenced by System.DateTimeParse.ProcessHebrewTerminalState().