human_duration_parser 3.0.0 copy "human_duration_parser: ^3.0.0" to clipboard
human_duration_parser: ^3.0.0 copied to clipboard

Parse human readable duration into Dart's duration

3.0.0 #

  • null returned when parsing fails.
  • Year/month parsing changed to refer to local year/month

    For example, 1 month resolves to 31 days in january, but only 28 in february. This ensures that 1 month away from the nth day is always the nth day of the following month, and similarly for leap years.

  • Added allowNegative to set whether negative values are allowed. Parsing will fail if the final result is negative.

2.0.1 #

  • Initial version.
  • Fixup naming and version

2.0.0 #

  • Initial version.
0
likes
110
pub points
32%
popularity

Publisher

unverified uploader

Parse human readable duration into Dart's duration

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL-3.0 (LICENSE)

More

Packages that depend on human_duration_parser