Hey guys,
I would like to convert an amount of 'x minutes' to an output of 'x day(s), x hour(s), x minute(s).
I have no idea how to do that in an easy way.
I feel like I have to calculate every time how many days there fit in the 'x minutes', and then substract it, to calculate how many hours there are left, then also substract it, to get the 3rd value in minutes as well.
Is there an easier way to do this?
I would like to convert an amount of 'x minutes' to an output of 'x day(s), x hour(s), x minute(s).
I have no idea how to do that in an easy way.
I feel like I have to calculate every time how many days there fit in the 'x minutes', and then substract it, to calculate how many hours there are left, then also substract it, to get the 3rd value in minutes as well.
Is there an easier way to do this?