User blog comment:JoshuaJSlone/Replacing age and time calculation code/@comment-131168-20141203185314

So this is taking a lot longer than I thought. I thought I'd take the existing Age module and tweak a few things, but I kept thinking of things I wanted to add or change, so by the end it will probably be 90% mine. The good news is it will be a lot more versatile in general--the bad news is I imagine a lot of the options are a bit overboard, at least for our purposes here.

Biggie #1 is it originally did all of its calculations with Years, Months, and Days. I decided to expand it so it also uses Hours, Minutes, and Seconds.

Biggie #2 is making new options for outputs of the time differences. It originall had Years and Years+Months, which I expanded to include Years (with decimal) and Years+Months+Days. But now that it calculates more specifically than by day, it also has to be able to output more specifically. Age in hours. Age in days, hours, and minutes. Whatever. And since I started adding the decimal option for years, I figured I should be consistent and let the decimal option work for all the other outputs, too.

I haven't been working on it consistently, either. Once I started making things so big, sometimes I want to avoid looking at the mess I'm in the middle of. :)