i want to create age in my posting. result must be like this for example:
Just Now, **1** Minutes Ago, **1** Hours Ago, **1** Days Ago, **1** Months Ago & **1** Years ago.

```
   $datetime1 = date_create($value['date']);
    $datetime2 = date_create("now");
    $diff=date_diff($datetime1,$datetime2);
    if($diff->i >0){
      $final_date = $diff->format("%I Minutes Ago");
    }else if($diff->h >0){
      $final_date = $diff->format("%H Hours Ago");
    }else if($diff->y >0){
      $final_date = $diff->format("%Y Years Ago");
    }else if($diff->m >0){
      $final_date = $diff->format("%M Months Ago");
    }else if($diff->d >0){
      $final_date = $diff->format("%D Days Ago");
    } else {
        $final_date = "Just Now";
    }

```

my date from `$value['date']` is like this **2018-05-11 07:38:47**.

when i run with that code, result only showing in **Minutes**, not working for hours, day, etc...