Skip to content

Releases: gpgkd906/date_component

v0.4.4

07 Aug 14:11
Compare
Choose a tag to compare

What's Changed

  • Upgrade dependencies
  • refactor tests, splite tests into sperated files
  • enhanced timezone calcuate logic .

New Contributors

Full Changelog: 0.4.3...v0.4.4

0.4.3

12 Apr 11:17
Compare
Choose a tag to compare

Optimizing DateComponent Library Performance
We've significantly optimized the calculate function in the DateComponent library, resulting in remarkable performance gains:
・Simple date calculations: 66.5% faster
・Cross-month calculations: 50% faster
・Cross-year calculations: 73% faster
・Daylight Saving Time (DST) calculations: 76% faster
Technical Changes
・Simplified complex conditional logic and nested structures
・Implemented a more direct and efficient date handling algorithm
・Reduced multiple calls to get_nearest_day_before function
・Optimized DST handling by directly using duration-based calculations for hours, minutes, and seconds
Code Quality
・Improved code readability and maintainability
・Standardized time calculation borrowing logic
・Enhanced comments to better explain the implementation
・Maintained full backward compatibility with existing interfaces

Full Changelog: 0.4.2...0.4.3

v0.4.2

05 Jan 10:36
Compare
Choose a tag to compare

What's Changed

  • update the dependencies, add more test case.
  • update to v0.4.2