Adding an option to extend the time_ago transform with some time formatting
An example would be time_ago:hm, which would return the same value as time_ago. However anytime toLocaleTimeString is used, it will format the time with only hours and minutes - leaving off the seconds
I added a slight tweak to self.TR as well in case this idea is worth extending to other possible transforms. self.TR now looks for ":" and assumes anything before the ":" is the key, and anything after is the format option
time_ago
transform with some time formattingtime_ago:hm
, which would return the same value astime_ago
. However anytimetoLocaleTimeString
is used, it will format the time with only hours and minutes - leaving off the secondsself.TR
as well in case this idea is worth extending to other possible transforms. self.TR now looks for ":" and assumes anything before the ":" is the key, and anything after is the format option