August 2003
Intermediate to advanced
928 pages
32h 1m
English
DaylightTime
This setting defines when daylight saving
time begins and ends. It
uses three properties: Start is the time when
daylight saving time begins; End is when standard
time resumes; and Delta is the length of time
(measured in ticks) that the clock is adjusted from standard time
during this period. Delta is a
System.TimeSpan value measured in
“ticks,” or 100-nanosecond periods.
public class DaylightTime { // Public Constructors public DaylightTime(DateTimestart, DateTimeend, TimeSpandelta); // Public Instance Properties public TimeSpan Delta{get; } public DateTime End{get; } public DateTime Start{get; } }
System.TimeZone.GetDaylightChanges( )
System.TimeZone.IsDaylightSavingTime( )