You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
474 B
C#
17 lines
474 B
C#
/*
|
|
* C# Program to Get the DayLight Saving Information
|
|
*/
|
|
using System;
|
|
using System.Globalization;
|
|
class Program
|
|
{
|
|
static void Main()
|
|
{
|
|
TimeZone z = TimeZone.CurrentTimeZone;
|
|
DaylightTime t = z.GetDaylightChanges(DateTime.Today.Year);
|
|
Console.WriteLine("Start Time: {0}", t.Start);
|
|
Console.WriteLine("Delta Time: {0}", t.Delta);
|
|
Console.WriteLine("End Time: {0}", t.End);
|
|
Console.ReadLine();
|
|
}
|
|
} |