kentfredric/Dist-Zilla-Plugin-AutoVersion-Relative — pull request #1 by karenetheridge (2012-02-01 18:16:22+00:00)
Title: Fix definition of "days" variable

I want to use this as my format (based heavily on rjbs's example in [AutoVersion]):
{{ $major }}.{{ sprintf('%02u%03u%01u', $minor, $relative->in_units('days') + 1, ($ENV{N} || 0)) }}{{ $ENV{DEV} ? (sprintf '_%03u', $ENV{DEV}) : '' }}

...but the calculation with $relative breaks down as soon as more than a month passes from the milestone. What I really need is "number of days since milestone", but this information is no longer available in the DateTime::Duration object in $relative. However, this value is available via a calculation in DateTime, so I took you seriously when you said "Fixes welcome if you want this to respond properly.", and updated the implementation of the "days" format variable to use this. :)

thanks!