NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
DateTime::Format::Duration (Score:2)
Re:DateTime::Format::Duration (Score:2)
The last time I checked (this morning), it did not do what I wanted. It could tell me the minutes component of the interval, but it could not convert the days, hours, and minutes to a total number of minutes. Unless I'm missing something, and if so, please point it out, because you will really help me.
J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers
Reply to This
Parent
Re:DateTime::Format::Duration (Score:1)
Re:DateTime::Format::Duration (Score:2)
Yes, I did, and thank you! I'd discovered delta_ms by that time. However, it still does not really DWIM. If I have real Date objects, I should be able to subtract them and get an interval that can be converted to whatever resolution or units I want. The problem then is that I have to do something unintuitive with my DateTimes: intuitively, I had written
and expected to get something that I could express as minutes. I shouldn't have to perform something other than subtraction in order to
J. David works really hard, has a passion for writing good software, and knows many of the world's best Perl programmers
Re:DateTime::Format::Duration (Score:2)