O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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()

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required