Click or drag to resize
DurationEquals Method

True if the argument is a duration with the same or equivalent specification. Note that P1W equals P7D by definition, whereas e.g. P1M does not equal P30D since months are not 30 days in general. Less obvious, P1D is not equal to P24H in general.

Years are normalized to months, weeks to days and hours and minutes to seconds. After normalization, both durations are compared component by component. Iff all components match, this method returns true.

Namespace:  Apptus.ESales.Connector.Time
Assembly:  Apptus.Esales.ConnectorApi (in Apptus.Esales.ConnectorApi.dll) Version: 4.5.0
Syntax
C#
public override bool Equals(
	Object obj
)

Parameters

obj
Type: SystemObject

Return Value

Type: Boolean
See Also