You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.
I am using am-time-ago directive in my angular app to show the relative time. It displays the time correctly. The only problem is when it comes to hours, it shows like '2 hrs ago' even if it has lapsed 2 hours and 55 mins which gives a wrong impression. I need to change it to display 'x hrs y mins ago'.
I tried below option to set for the 'h' and 'hh' option, but I'm not getting the minutes value inside the function.
`h:function (number, withoutSuffix, key, isFuture){
//number coming here is hours value
}
Is there any easy way to format hours to 'x hr y mins ago'.. I already put one question on SO two weeks ago, still no luck there.
The text was updated successfully, but these errors were encountered:
I am using am-time-ago directive in my angular app to show the relative time. It displays the time correctly. The only problem is when it comes to hours, it shows like '2 hrs ago' even if it has lapsed 2 hours and 55 mins which gives a wrong impression. I need to change it to display 'x hrs y mins ago'.
I tried below option to set for the 'h' and 'hh' option, but I'm not getting the minutes value inside the function.
`h:function (number, withoutSuffix, key, isFuture){
//number coming here is hours value
}
Is there any easy way to format hours to 'x hr y mins ago'.. I already put one question on SO two weeks ago, still no luck there.
The text was updated successfully, but these errors were encountered: