/// <summary> /// Returns a local instant, formed from the given year, month, day, /// hour, minute, second, millisecond and ticks values. /// </summary> /// <param name="year">Absolute year (not year within era; may be negative)</param> /// <param name="monthOfYear">Month of year</param> /// <param name="dayOfMonth">Day of month</param> /// <param name="hourOfDay">Hour within the day (0-23)</param> /// <param name="minuteOfHour">Minute within the hour</param> /// <param name="secondOfMinute">Second within the minute</param> /// <param name="millisecondOfSecond">Millisecond within the second</param> /// <param name="tickOfMillisecond">Tick within the millisecond</param> /// <returns>A <see cref="LocalInstant"/> with the given values.</returns> internal LocalInstant GetLocalInstant(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, int millisecondOfSecond, int tickOfMillisecond) { LocalInstant date = yearMonthDayCalculator.GetLocalInstant(year, monthOfYear, dayOfMonth); long timeTicks = TimeOfDayCalculator.GetTicks(hourOfDay, minuteOfHour, secondOfMinute, millisecondOfSecond, tickOfMillisecond); return(date.PlusTicks(timeTicks)); }
internal LocalInstant GetLocalInstant(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour) { LocalInstant date = yearMonthDayCalculator.GetLocalInstant(year, monthOfYear, dayOfMonth); long timeTicks = TimeOfDayCalculator.GetTicks(hourOfDay, minuteOfHour); return(date.PlusTicks(timeTicks)); }