IPeriodicSpecialDay Interface

Interface for a Periodic Special day. A special day that is specific, or recurring yearly. Only the Date part of a DateTime is used. Remember to set the usage of the special day. The usage tells how this special day is to be handled. It can either not be handled, or handled as another weekday. Use Check(DateTime,...) to test if a DateTime mathces the special day.

Definition

Namespace: DHI.Mike1D.BoundaryModule.PeriodicItem
Assembly: DHI.Mike1D.BoundaryModule (in DHI.Mike1D.BoundaryModule.dll) Version: 24.0.0.0 (11.1.1.1111)
C#
public interface IPeriodicSpecialDay

Properties

Id ID for Special day
Usage Set how to use this special day.
  • -1 : – Do not use this.
  • 0-6 : – weekdays, as returned by DateTime: 0=sunday,..., 6=saturday.

Methods

Check(DateTime, Int32) Check whether a date matches this special day. A usage is returned if the date matches the specialday. See also optimized version below, to use when date.Months and date.Day is precalculated.
Check(DateTime, Int32, Int32, Int32) Check whether a date matches this special day. A usage is returned if the date matches the specialday. Optimized version, when the date.Month and date.Day is precalculated.

See Also