Created
November 2, 2022 17:46
-
-
Save jskeet/62cd55dbaa421eb4e9b1a59fa9fa5d78 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Globalization; | |
class Program | |
{ | |
static void Main() | |
{ | |
var zone = TimeZoneInfo.FindSystemTimeZoneById("Altai Standard Time"); | |
DateTime start = new DateTime(2013, 12, 31, 16, 0, 0, DateTimeKind.Utc); | |
DateTime end = start.AddHours(4); | |
for (DateTime current = start; current < end; current = current.AddMinutes(10)) | |
{ | |
Console.WriteLine($"{current:yyyy-MM-dd'T'HH':'mm':'ss'Z'}: {zone.GetUtcOffset(current)}"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Output: