Jeremy Worboys does not actively monitor this forum
(but you can still get help from other EE users).

CC Time Difference

ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From Jeremy Worboys


You must be logged in to post.

Split Hours & Minutes in to days

General (Resolved)

Made By Shape
Made By Shape

I love this plugin, but I’d love the option to show the Hours & Minutes based on the days.

So Instead of….

24 Days, 237 Hours, 5039 Mins (For example)

It would be better (Or an option) to do this:

24 Days, 2 Hours, 10 Mins

So it cascades down.

I managed to get this to work using MX Calculator:

{exp:mx_calc expression='{hours} - ({days} * 24)' parse='inward'} Hours 
{exp:mx_calc expression='{minutes} - ({hours} * 60)' parse='inward'} Mins 
Jeremy Worboys
# 1
Jeremy Worboys


Thanks for the positive feedback.

Great idea! I’ve just uploaded version 1.3.0 which adds an inclusive parameter. Set it to off and the remainder of each unit will be returned. The default is to return the total of each unit.

Made By Shape
# 2
Made By Shape

Magic! Super quick response and super quick update. Thank you so much.

Don’t forget to add it to the documentation on your site and in the plugin though ;)