Skip to content

Commit

Permalink
Rework DateTime struct
Browse files Browse the repository at this point in the history
- Add DebuggerBrowsableState attributes to hide several fields from debugger.
- Add UTC and ticks mask to properly handle tick values following .NET implementation.
- Correct handling of ticksAtOrigin on most code location where it was being used.
- Replace individual calls to get date time parts with a single call passing a parameter with the requested part.
- Correct several documentation comments with the correct origin and final years supported by nF.
- Replace code with expression body on several properties.
- Correct use of internal field _ticks by using the public property.
- Add DebuggerDisplay attribute and respective formatting property to be able to display DateTime objects correctly in VS debugger.

Signed-off-by: josesimoes <jose.simoes@eclo.solutions>
  • Loading branch information
josesimoes committed May 8, 2020
1 parent eb5e32c commit ded3098
Showing 2 changed files with 95 additions and 79 deletions.
2 changes: 1 addition & 1 deletion source/nanoFramework.CoreLibrary/System/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -14,4 +14,4 @@
[assembly: AssemblyProduct("nanoFramework mscorlib")]
[assembly: AssemblyCopyright("Copyright © nanoFramework Contributors 2017")]

[assembly: AssemblyNativeVersion("100.4.8.0")]
[assembly: AssemblyNativeVersion("100.4.9.0")]
Loading

0 comments on commit ded3098

Please sign in to comment.