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

    Parameters

    timeOfDay
    The time at which the time change occurs.
    month
    The month in which the time change occurs.
    day
    The day of the month 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's System.DateTime.Kind property is not System.DateTimeKind.Unspecified.-or-The timeOfDay parameter does not represent a whole number of milliseconds.
    The month parameter is less than 1 or greater than 12.-or-The day parameter is less than 1 or greater than 31.
    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