private static string QuadrumsContinuousRangeLabel(List <Twelfth> twelfths, Twelfth rootTwelfth) { Twelfth leftMostTwelfth = TwelfthUtility.GetLeftMostTwelfth(twelfths, rootTwelfth); Twelfth rightMostTwelfth = TwelfthUtility.GetRightMostTwelfth(twelfths, rootTwelfth); for (Twelfth twelfth = leftMostTwelfth; twelfth != rightMostTwelfth; twelfth = TwelfthUtility.TwelfthAfter(twelfth)) { if (!twelfths.Contains(twelfth)) { Log.Error(string.Concat(new object[] { "Twelfths doesn't contain ", twelfth, " (", leftMostTwelfth, "..", rightMostTwelfth, ")" }), false); break; } twelfths.Remove(twelfth); } twelfths.Remove(rightMostTwelfth); return(GenDate.QuadrumDateStringAt(leftMostTwelfth) + " - " + GenDate.QuadrumDateStringAt(rightMostTwelfth)); }
private static string QuadrumsContinuousRangeLabel(List <Twelfth> twelfths, Twelfth rootTwelfth) { Twelfth leftMostTwelfth = TwelfthUtility.GetLeftMostTwelfth(twelfths, rootTwelfth); Twelfth rightMostTwelfth = TwelfthUtility.GetRightMostTwelfth(twelfths, rootTwelfth); for (Twelfth twelfth = leftMostTwelfth; twelfth != rightMostTwelfth; twelfth = TwelfthUtility.TwelfthAfter(twelfth)) { if (!twelfths.Contains(twelfth)) { Log.Error("Twelfths doesn't contain " + twelfth + " (" + leftMostTwelfth + ".." + rightMostTwelfth + ")"); break; } twelfths.Remove(twelfth); } twelfths.Remove(rightMostTwelfth); return(GenDate.QuadrumDateStringAt(leftMostTwelfth) + " - " + GenDate.QuadrumDateStringAt(rightMostTwelfth)); }
public static string QuadrumDateStringAt(Twelfth twelfth) { return(GenDate.QuadrumDateStringAt((long)((int)twelfth * 300000 + 1), 0f)); }
public static string QuadrumDateStringAt(Quadrum quadrum) { return(GenDate.QuadrumDateStringAt((long)((int)quadrum * 900000 + 1), 0f)); }