Created
September 1, 2015 14:15
-
-
Save esdrubal/1f68655396d77da80905 to your computer and use it in GitHub Desktop.
GetDaylightChanges range
This file contains 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
mono3(master)$ TZ='Asia/Hong_Kong' mono/mini/mono --debug mcs/class/lib/net_4_x/csharp.exe | |
Mono C# Shell, type "help;" for help | |
Enter statements below. | |
csharp> var dst = TimeZone.CurrentTimeZone.GetDaylightChanges (2015) | |
System.ArgumentOutOfRangeException: The added or subtracted value results in an un-representable DateTime. | |
Parameter name: t | |
at System.DateTime.op_Addition (DateTime d, TimeSpan t) [0x0003e] in /Users/marcos/dev/mono/mono3/external/referencesource/mscorlib/system/datetime.cs:1263 | |
at System.TimeZoneInfo.GetDaylightChanges (Int32 year) [0x000e5] in /Users/marcos/dev/mono/mono3/mcs/class/corlib/System/TimeZoneInfo.cs:938 | |
at System.CurrentSystemTimeZone.GetDaylightChanges (Int32 year) [0x00000] in /Users/marcos/dev/mono/mono3/mcs/class/corlib/System/TimeZone.cs:195 | |
at <InteractiveExpressionClass>.Host (System.Object& $retval) <0x111f331b0 + 0x0001e> in <filename unknown>:0 | |
at Mono.CSharp.Evaluator.Evaluate (System.String input, System.Object& result, System.Boolean& result_set) [0x0003e] in /Users/marcos/dev/mono/mono3/mcs/mcs/eval.cs:369 | |
at Mono.CSharpShell.Evaluate (System.String input) [0x00000] in /Users/marcos/dev/mono/mono3/mcs/tools/csharp/repl.cs:383 | |
csharp> quit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment