Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TimeSpam is missing the "total" properties #344

Closed
josesimoes opened this issue Jun 13, 2018 · 0 comments · Fixed by nanoframework/nf-interpreter#747
Closed

TimeSpam is missing the "total" properties #344

josesimoes opened this issue Jun 13, 2018 · 0 comments · Fixed by nanoframework/nf-interpreter#747

Comments

@josesimoes
Copy link
Member

josesimoes commented Jun 13, 2018

The .NET struct has these properties which are very convenient for use cases where you want to subtract two DateTime and have the total time that an operation took, for example.

TotalDays
TotalHours
TotalMinutes
TotalSeconds
TotalMilliseconds

As all of them are based in the already existing ticks value that represents the TimeSpan, there is no severe penalty on adding these which are calculated only when, and if, called.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant