Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Test Daylight Savings
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Configuration; using System.IO; using System.Web; using System.Web.Hosting; namespace Rextester { public class Program { public static void Main(string[] args) { TimeZoneInfo _myTimeZone = TimeZoneInfo.FindSystemTimeZoneById("Mountain Standard Time"); DateTime x = TimeZoneInfo.ConvertTimeFromUtc(DateTime.UtcNow, _myTimeZone).AddDays(1); DateTime y = new DateTime(2018, 03, 11, 10, 00, 00); double min = 0; while (x < y) { Console.WriteLine(x.ToString()); x = TimeZoneInfo.ConvertTimeFromUtc(DateTime.UtcNow.AddMinutes(min), _myTimeZone); min += 20; } } }
run
|
edit
|
history
|
help
0
azs dasx
Ggj
HelloWorld
ANQ Bug with Feb month display
SHA Tester 2.0
prime numbers 1-100
adxasxsd
a5
SAF Mid Terms
Find median in a stream