예제 #1
0
        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));
        }
예제 #2
0
        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));
        }
예제 #3
0
 public static string QuadrumDateStringAt(Twelfth twelfth)
 {
     return(GenDate.QuadrumDateStringAt((long)((int)twelfth * 300000 + 1), 0f));
 }
예제 #4
0
 public static string QuadrumDateStringAt(Quadrum quadrum)
 {
     return(GenDate.QuadrumDateStringAt((long)((int)quadrum * 900000 + 1), 0f));
 }