Name

DaylightTime

Synopsis

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 method DaylightTime(DateTime start, DateTime end, 
        TimeSpan delta);  
// Public Instance Properties
   public field TimeSpan Delta{get; } 
   public field DateTime End{get; } 
   public field DateTime Start{get; } 
}

Returned By

System.TimeZone.GetDaylightChanges()

Passed To

System.TimeZone.IsDaylightSavingTime()

Get C# in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.