TimeCalculateTimeSchedule(DateTime, NullableDateTime, DateTime, NullableDateTime) Method

Converts a schedule time interval between a start date and an end date, if there are intervals greater than 24 hours, they are considered as times of a schedule that repeats for several days

Definition

Namespace: Aliquo.Core
Assembly: Aliquo.Core (in Aliquo.Core.dll) Version: 5.0.9179.22651
C#
public static TimeSpan CalculateTimeSchedule(
	DateTime dateStart,
	DateTime? timeStart,
	DateTime dateEnd,
	DateTime? timeEnd
)

Parameters

dateStart  DateTime
Start date.
timeStart  NullableDateTime
Start time.
dateEnd  DateTime
End date.
timeEnd  NullableDateTime
End time.

Return Value

TimeSpan
TimeSpan with the schedule time interval between a start date and an end date.

See Also