TimeNotationCollectionTotalTime Method

Return the total number of hours given in the provided collection, stopping with the specified maximum repeated cycle amount.

Definition

Namespace: ProjectTask
Assembly: ProjectTask (in ProjectTask.dll) Version: 25.2814.3647
C#
public static float TotalTime(
	List<TimeNotationItem> times,
	DateTime startTime,
	float maximumHours = 1040f,
	int maximumDays = 365
)

Parameters

times  ListTimeNotationItem
Reference to the collection of times to render.
startTime  DateTime
Date and time at which to start measuring the total time.
maximumHours  Single  (Optional)
The optional maximum number of hours that can be rendered in the cycle. The default is 1,040, or six months composed of 40-hour workweeks.
maximumDays  Int32  (Optional)
The optional maximum number of days that can be rendered in the cycle. The default is 365, or one year.

Return Value

Single
The total amount of time defined by the provided collection of time notations, within the maximum scope of hours.

See Also