Ejemplo n.º 1
0
        public static long EstStartOfSeasonAt(long ticks)
        {
            var currentDayTicks       = (int)(GenDate.CurrentDayPercent * GenDate.TicksPerDay);
            var dayOfSeason           = GenDate.DayOfSeasonZeroBasedAt(ticks);
            var currentSeasonDayTicks = DaysToTicks(dayOfSeason);

            return(ticks - currentDayTicks - currentSeasonDayTicks);
        }