How do I convert a TimeSpan to a float , taking into account all of the processing unit (hour minute) for example if (unit = hour) convert TimeSpan to a float hours
In another context, is there not a data type "Timespan" in SQL Server ?
Use the Total*
properties on TimeSpan
, e.g. TimeSpan.TotalHours
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With