You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/nanoFramework.CoreLibrary/System/DateTime.cs
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -170,15 +170,16 @@ private enum DateTimePart
170
170
/// <exception cref="System.ArgumentOutOfRangeException"><paramref name="ticks"/> - Ticks must be between <see cref="DateTime.MinValue"/> and <see cref="DateTime.MaxValue"/>.</exception>
171
171
publicDateTime(longticks)
172
172
{
173
-
ticks-=_ticksAtOrigin;
174
-
175
173
#pragma warning disable S3928// Parameter names used into ArgumentException constructors should match an existing one
176
174
if(ticks<MinTicks||ticks>MaxTicks)
177
175
{
178
176
thrownewArgumentOutOfRangeException();
179
177
}
180
178
#pragma warning restore S3928// Parameter names used into ArgumentException constructors should match an existing one
0 commit comments