zeba_academy_time_utils 0.0.1 copy "zeba_academy_time_utils: ^0.0.1" to clipboard
zeba_academy_time_utils: ^0.0.1 copied to clipboard

A lightweight Dart utility package for converting and formatting Duration values into readable, compact, and digital representations.

Changelog #

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project follows Semantic Versioning.

0.0.1 - 2026-08-12 #

Added #

  • Initial release of zeba_academy_duration.
  • Added DurationFormatter for duration presentation.
  • Added human-readable duration formatting with readable().
  • Added compact duration formatting with compact().
  • Added digital HH:MM:SS formatting with digital().
  • Added MM:SS formatting with minutesAndSeconds().
  • Added DurationUtils for duration conversions.
  • Added seconds-to-Duration conversion with fromSeconds().
  • Added minutes-to-Duration conversion with fromMinutes().
  • Added hours-to-Duration conversion with fromHours().
  • Added milliseconds-to-Duration conversion with fromMilliseconds().
  • Added Duration to seconds conversion with toSeconds().
  • Added Duration to minutes conversion with toMinutes().
  • Added Duration to hours conversion with toHours().
  • Added Duration to milliseconds conversion with toMilliseconds().
  • Added whole seconds conversion with wholeSeconds().
  • Added whole minutes conversion with wholeMinutes().
  • Added whole hours conversion with wholeHours().
  • Added DurationConstants for commonly used time constants.
  • Added support for zero-duration values.
  • Added support for negative durations.
  • Added support for decimal seconds, minutes, and hours when creating durations.
  • Added comprehensive unit tests covering formatting and conversion utilities.
  • Added public package exports through zeba_academy_duration.dart.
  • Added Dart documentation comments for the public API.
  • Added GPL-3.0 licensing.
  • Added production-ready package documentation.

Compatibility #

  • Requires Dart SDK >=3.12.0.
  • Compatible with Flutter projects using a compatible Dart SDK.
  • Contains no runtime dependencies.

Quality #

  • Verified with flutter test.
  • Verified with flutter analyze.
  • Prepared for flutter pub publish --dry-run.

0
likes
150
points
56
downloads

Documentation

API reference

Publisher

verified publisherzeba.academy

Weekly Downloads

A lightweight Dart utility package for converting and formatting Duration values into readable, compact, and digital representations.

Homepage

License

GPL-3.0 (license)

Dependencies

flutter

More

Packages that depend on zeba_academy_time_utils