Share via


DaylightTime Constructor

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Initializes a new instance of the DaylightTime class with the specified start, end, and time difference information.

Namespace:  System.Globalization
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
Public Sub New ( _
    start As DateTime, _
    end As DateTime, _
    delta As TimeSpan _
)
public DaylightTime(
    DateTime start,
    DateTime end,
    TimeSpan delta
)
public:
DaylightTime(
    DateTime start, 
    DateTime end, 
    TimeSpan delta
)
new : 
        start:DateTime * 
        end:DateTime * 
        delta:TimeSpan -> DaylightTime
public function DaylightTime(
    start : DateTime, 
    end : DateTime, 
    delta : TimeSpan
)

Parameters

  • start
    Type: System. . :: . .DateTime
    The object that represents the date and time when daylight saving time begins. The value must be in local time.
  • end
    Type: System. . :: . .DateTime
    The object that represents the date and time when daylight saving time ends. The value must be in local time.
  • delta
    Type: System. . :: . .TimeSpan
    The object that represents the difference between standard time and daylight saving time, in ticks.

Remarks

The start parameter becomes the value of the Start property of the new object. The end parameter becomes the value of the End property of the new object. The delta parameter becomes the value of the Delta property of the new object.

.NET Framework Security

See Also

Reference

DaylightTime Class

System.Globalization Namespace