PackageTrack
Sign in Get early access

time_plus

Extensions for DateTime and Duration to easily add, convert, and work with time in Dart.

1.3.2 2.6K downloads/mo #4902 most downloaded on pub.dev jozzdart/time_plus

What this package is like to depend on

Last release 1 years ago

28 May 2025

Too new to tell

only 1 release windows

Nearly every release is documented

notes for 7 of 7 stable releases

Nothing withdrawn

no release was ever pulled

1 years old

7 releases · first in 2025

0 releases in the last 12 months

see the full history below

Release timeline

7 releases · May 2025 to May 2025
2026
Release Pre-release

Releases

latest 7
  1. 1.3.2 28 May 2025
    Release notes
    • Updated README
    Open source →
  2. 1.3.1 24 May 2025
    Release notes
    • Updated README
    Open source →
  3. 1.3.0 24 May 2025
    Release notes
    • Added full suite of Duration → fractional unit getters:
      • asMilliseconds, asSeconds, asMinutes, asHours, asDays, asWeeks, asMonths, asYears, asDecades, asCenturies
    • Added new DateTime calendar-aware getters:
      • daysInMonth, daysInYear
    • Added smart Duration creation from int and double:
      • 1.days, 2.hours, 3.centuries and 1.5.hours, 0.25.years, 2.75.months, etc. Uses decomposition for precise accuracy.
    • Updated month/year/decade/century logic for Duration:
      • Now uses long-term Gregorian calendar averages:
        • Month ≈ 30.436875 days
        • Year ≈ 365.2425 days
        • Decade ≈ 3,652.425 days
        • Century ≈ 36,524.25 days
      • Improves consistency, accuracy, and alignment with real-world time math
      • Replaces prior approximations (30, 365, 3650, etc.)
    • Added time vs time_plus comparison section to README:
      • Highlights architectural improvements, precision gains, and test coverage
      • Documents why time_plus is a modern, high-performance alternative to the time package

    All new additions are documented in the README and covered by tests.
    For exact calendar logic, continue using DateTime methods.

    Open source →
    Release notes
    • Added full suite of Duration → fractional unit getters:
      • asMilliseconds, asSeconds, asMinutes, asHours, asDays, asWeeks, asMonths, asYears, asDecades, asCenturies
    • Added new DateTime calendar-aware getters:
      • daysInMonth, daysInYear
    • Added smart Duration creation from int and double:
      • 1.days, 2.hours, 3.centuries and 1.5.hours, 0.25.years, 2.75.months, etc. Uses decomposition for precise accuracy.
    • Updated month/year/decade/century logic for Duration:
      • Now uses long-term Gregorian calendar averages:
        • Month ≈ 30.436875 days
        • Year ≈ 365.2425 days
        • Decade ≈ 3,652.425 days
        • Century ≈ 36,524.25 days
      • Improves consistency, accuracy, and alignment with real-world time math
      • Replaces prior approximations (30, 365, 3650, etc.)
    • Added time vs time_plus comparison section to README:
      • Highlights architectural improvements, precision gains, and test coverage
      • Documents why time_plus is a modern, high-performance alternative to the time package

    All new additions are documented in the README and covered by tests.
    For exact calendar logic, continue using DateTime methods.

    Open source →
  4. 1.2.0 23 May 2025
    Release notes
    • Added comprehensive DateTime subtraction extensions with calendar-aware date arithmetic
    • Added DateTimeSubtractMonthsAndYearsExtension with subtractMonths, subtractYears, subtractMonth, subtractYear methods
    • Added DateTimeSubtractExtendingYearsExtension with subtractDecades, subtractCenturies, subtractDecade, subtractCentury methods
    • Works better than "adding minus days" or "adding minus weeks"
    • Lowered Dart SDK constraint to >=2.12.0 <4.0.0 for wider compatibility
    Open source →
    Release notes
    • Added comprehensive DateTime subtraction extensions with calendar-aware date arithmetic
    • Added DateTimeSubtractMonthsAndYearsExtension with subtractMonths, subtractYears, subtractMonth, subtractYear methods
    • Added DateTimeSubtractExtendingYearsExtension with subtractDecades, subtractCenturies, subtractDecade, subtractCentury methods
    • Works better than "adding minus days" or "adding minus weeks"
    • Lowered Dart SDK constraint to >=2.12.0 <4.0.0 for wider compatibility
    Open source →
  5. 1.1.6 22 May 2025
    Release notes
    • Added DateTimeNextExtensions extension on DateTime class:
      • Advanced date navigation methods:
        • nextWeekdayTime: Find the next occurrence of a specific weekday with optional time
        • nextTimeOfDay: Find the next time matching a specific time of day
    Open source →
    Release notes
    • Added DateTimeNextExtensions extension on DateTime class:
      • Advanced date navigation methods:
        • nextWeekdayTime: Find the next occurrence of a specific weekday with optional time
        • nextTimeOfDay: Find the next time matching a specific time of day
    Open source →
  6. 1.1.5 22 May 2025
    Release notes
    • Added DateTimeWeekdayExtensions extension on DateTime class:
      • Day navigation getters:
        • yesterday: Returns start of previous day
        • tomorrow: Returns start of next day
      • Weekday navigation getters:
        • nextWeekday: Returns weekday number of next day
        • previousWeekday: Returns weekday number of previous day
    Open source →
    Release notes
    • Added DateTimeWeekdayExtensions extension on DateTime class:
      • Day navigation getters:
        • yesterday: Returns start of previous day
        • tomorrow: Returns start of next day
      • Weekday navigation getters:
        • nextWeekday: Returns weekday number of next day
        • previousWeekday: Returns weekday number of previous day
    Open source →
  7. 1.1.4 22 May 2025
    Release notes

    Added detailed README for enhanced user experience.

    Added

    • README with:
      • Emoji-based Table of Contents
      • Categorized DateTime and Duration extensions
      • Code examples for features
      • Emoji icons for readability
      • "Back to Top" links
      • Sections on:
        • DateTime: Time units, precision, boundaries, leap year
        • Duration: Time units, factory methods, conversion, breakdown, removal
      • Examples with use cases, edge cases, chainable operations, calendar-aware calculations
      • Support: License, support link, branding
    Open source →

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive