NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev · #3038 most downloaded on pub.dev
A package which parses ISO 8061 Duration (PnYnMnDTnHnMnS format).
Last release 5 years ago
no release in 18 months
Ships fairly regularly
a new release about every 3 weeks
Nearly every release is documented
notes for 5 of 5 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
5 releases · first in 2021
One column per quarter.
1.1.1 Constructor is now const. Updated docs & README. Updated tests. Updated CI.
withDate now handles and supports UTC DateTime .
withDate now handles and supports UTC DateTime.format now supports years, months, weeks and days as well.inverse method which makes IsoDuration positive if it is negative and vice versa.Added toIso method which returns ISO 8601 Duration format from the IsoDuration object.
toIso method which returns ISO 8601 Duration format from the IsoDuration object.withDate method which adds/subtracts IsoDuration from a DateTimefinal isoDur = IsoDuration.parse('PT12H');
final dateTime = DateTime(2021, 1, 20, 8); // 2021-01-20 08:00:00.000
isoDur.withDate(dateTime); // 2021-01-20 20:00:00.000format method which formats IsoDuration to specified String formatfinal durFormat = IsoDuration.parse('PT4H5M');
durFormat.format('See you in {hh}h {m}m'); // See you in 04h 5misAfter, isBefore, isAtSameMomentAs, isPrecise, hasDecimals, copyWithMinus operator is allowed only before the literal P. An example:-P1DT15H
Added toSeconds method for calculating total sum of all individual parts.
toSeconds method for calculating total sum of all individual parts.IsoDuration to differentiate from the Dart's Duration.Initial release.
Your coding agent can read these notes before it upgrades. Set up the MCP server →