• Resolved newbiedev

    (@newbiedev)


    Hi

    I’m using pods and one of the field is “Plain number” that stores the duration in minutes.

    While displaying it using magic tags, I want to convert it to h/mins format.

    Example: 110 mins should be displayed as 1h 50min

    Here’s the code I’m using in Pods template currently. I’ve tried using floor or mod functions, but they don’t seem to work. Could you help me how to achieve this?

    	<li class="mov_flx">
    	  <strong>Duration</strong>
    		<span class="mov_liinfo">
    			{@duration} mins
    		</span>
    	</li>

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How to convert mins to hours/minutes’ is closed to new replies.