simple_durations 1.1.0
simple_durations: ^1.1.0 copied to clipboard
Extensions on int to easily create Durations directly from ints. Can be used for units as small as planck time all the way up to galactic years and beyond.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[Unreleased] #
Added #
toString()method toPlanckDurationclass for better debugging and display- Arithmetic operators (
+,-,*,/) toPlanckDurationclass - Comparison operators (
<,>,<=,>=) toPlanckDurationclass toDuration()method to convertPlanckDurationtoDuration- Input validation for negative values in
PlanckDurationconstructor SimpleDurationsDoubleextension fordoublevalues with fractional precision- Comprehensive test coverage for new features and edge cases
- Enhanced documentation with examples
Changed #
- Improved error messages for negative value validation
- Enhanced
PlanckDurationconstructor with validation
Fixed #
- Better precision handling in double extensions
- Improved toString() display logic for various time units
1.0.7 2024-01-XX #
Added #
- Initial release with comprehensive time duration extensions
- Support for planck time and sub-microsecond precision
- Extensive collection of time units from planck time to galactic years
PlanckDurationclass for ultra-precise time measurements- Support for both integer and fractional time values
Features #
- Extensions on
intfor creatingDurationobjects - Custom
PlanckDurationclass for sub-microsecond precision - Over 50 different time units supported
- Comprehensive test coverage
- Well-documented API with examples