Support » Plugin: Pods - Custom Content Types and Fields » How to display “X Minuets ago” for recent posts.

  • Resolved richard1st


    Hi! Im using this code to display human time but it only shows the hours without the minuets.

    /* Human Time Function: Usage {@post_date, human_time} in Pods Templates */
    function human_time ( $datetime ) {
    	$mod_time = strtotime($datetime);
    	return human_time_diff( $mod_time, current_time('timestamp') );

    Can you help me make this show Minuets as well like this ” “X hour and X Minuets ago”?


    • This topic was modified 5 months, 2 weeks ago by  richard1st.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.