← Back
IAmTimCorey December 9, 2024 9m

TimeSpan Improvements in .NET 9 (maybe even a bug fix)

Summary

This tech analysis focuses on a minor but significant update to .NET 9's `TimeSpan` functionality. It highlights an issue with using double values for precision, specifically mentioning the `TimeSpan.FromSeconds` method. The practical takeaway is to utilize the new overload for `TimeSpan` in .NET 9 to avoid potential precision bugs when dealing with specific numerical inputs.

View original episode ↗