Пример #1
0
        public void TicksToDaysAndTickOfDayAndBack(long ticks)
        {
            long tickOfDay;
            int  days = TickArithmetic.TicksToDaysAndTickOfDay(ticks, out tickOfDay);

            Assert.AreEqual(ticks, TickArithmetic.DaysAndTickOfDayToTicks(days, tickOfDay));
        }
Пример #2
0
 public long ToUnixTimeTicks() =>
 TickArithmetic.DaysAndTickOfDayToTicks(duration.FloorDays, duration.NanosecondOfFloorDay / NanosecondsPerTick);