public void TicksToDaysAndTickOfDayAndBack(long ticks) { long tickOfDay; int days = TickArithmetic.TicksToDaysAndTickOfDay(ticks, out tickOfDay); Assert.AreEqual(ticks, TickArithmetic.DaysAndTickOfDayToTicks(days, tickOfDay)); }
public long ToUnixTimeTicks() => TickArithmetic.DaysAndTickOfDayToTicks(duration.FloorDays, duration.NanosecondOfFloorDay / NanosecondsPerTick);