FaceFile for D2

This commit is contained in:
2024-10-20 17:49:48 -07:00
parent 7b00fcaae8
commit 924bd14c31
12 changed files with 261 additions and 0 deletions

View File

@ -19,6 +19,22 @@ internal abstract class XDate
return result;
}
internal static (int Season, string seasonName) GetSeasonAB(int dayOfYear)
{
(int Season, string seasonName) result = dayOfYear switch
{
< 78 => new(0, "WinterA"),
< 124 => new(1, "SpringA"),
< 171 => new(1, "SpringB"),
< 217 => new(2, "SummerA"),
< 264 => new(2, "SummerB"),
< 309 => new(3, "FallA"),
< 354 => new(3, "FallB"),
_ => new(4, "WinterB")
};
return result;
}
internal static (bool?, string[]) IsWrongYear(string[] segments, string year)
{
bool? result;