Skip to content

Commit

Permalink
Work on TimeSpan (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
josesimoes authored Jun 15, 2018
1 parent 621c58b commit 81f916f
Show file tree
Hide file tree
Showing 2 changed files with 121 additions and 143 deletions.
6 changes: 3 additions & 3 deletions source/System/DateTime.cs
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ public TimeSpan Subtract(DateTime val)
/// <returns>An object that is equal to the date and time represented by this instance minus the time interval represented by val.</returns>
public DateTime Subtract(TimeSpan val)
{
return new DateTime((long)(_ticks - (ulong)val._numberOfTicks));
return new DateTime((long)(_ticks - (ulong)val._ticks));
}

/// <summary>
Expand Down Expand Up @@ -545,7 +545,7 @@ public String ToString(String format)
/// </returns>
public static DateTime operator +(DateTime d, TimeSpan t)
{
return new DateTime((long)(d._ticks + (ulong)t._numberOfTicks));
return new DateTime((long)(d._ticks + (ulong)t._ticks));
}


Expand All @@ -559,7 +559,7 @@ public String ToString(String format)
/// </returns>
public static DateTime operator -(DateTime d, TimeSpan t)
{
return new DateTime((long)(d._ticks - (ulong)t._numberOfTicks));
return new DateTime((long)(d._ticks - (ulong)t._ticks));
}

/// <summary>
Expand Down
Loading

0 comments on commit 81f916f

Please sign in to comment.