NevronOpenVision
Nevron.Nov Namespace / NTransitionTime Structure / CreateFloatingDateRule Method
The time at which the time change occurs.
The month in which the time change occurs.
The week of the month in which the time change occurs.
The day of the week on which the time change occurs.
In This Topic
    CreateFloatingDateRule Method
    In This Topic
    Defines a time change that uses a floating-date rule.
    Syntax
    public static NTransitionTime CreateFloatingDateRule( 
       System.DateTime timeOfDay,
       System.int month,
       System.int week,
       System.DayOfWeek dayOfWeek
    )

    Parameters

    timeOfDay
    The time at which the time change occurs.
    month
    The month in which the time change occurs.
    week
    The week of the month in which the time change occurs.
    dayOfWeek
    The day of the week on which the time change occurs.

    Return Value

    Data about the time change.
    Exceptions
    ExceptionDescription
    The timeOfDay parameter has a non-default date component.-or-The timeOfDay parameter does not represent a whole number of milliseconds.-or-The timeOfDay parameter's System.DateTime.Kind property is not System.DateTimeKind.Unspecified.
    month is less than 1 or greater than 12.-or-week is less than 1 or greater than 5.-or-The dayOfWeek parameter is not a member of the System.DayOfWeek enumeration.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also