DaylightTime Constructor
Collapse the table of content
Expand the table of content

DaylightTime Constructor

Initializes a new instance of the DaylightTime class.

[Visual Basic]
Public Sub New( _
   ByVal start As DateTime, _
   ByVal end As DateTime, _
   ByVal delta As TimeSpan _
)
[C#]
public DaylightTime(
   DateTime start,
 DateTime end,
 TimeSpan delta
);
[C++]
public: DaylightTime(
   DateTime start,
 DateTime end,
 TimeSpan delta
);
[JScript]
public function DaylightTime(
   start : DateTime,
 end : DateTime,
 delta : TimeSpan
);

Parameters

start
The DateTime that represents the date and time when the daylight-saving period begins. The value must be in local time.
end
The DateTime that represents the date and time when the daylight-saving period ends. The value must be in local time.
delta
The TimeSpan that represents the difference between the standard time and the daylight-saving time in ticks.

Remarks

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

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

DaylightTime Class | DaylightTime Members | System.Globalization Namespace | DateTime | TimeSpan | Start | End | Delta

Show:
© 2016 Microsoft