Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to format the "amTimeAgo" pipe? #201

Open
manishvolga opened this issue Sep 2, 2018 · 2 comments
Open

Is there a way to format the "amTimeAgo" pipe? #201

manishvolga opened this issue Sep 2, 2018 · 2 comments

Comments

@manishvolga
Copy link

manishvolga commented Sep 2, 2018

Hi,

I wonder if it is possible to change the formatting to be like this: "Just Now", "1 sec ago", "2 mins ago", etc.

Thanks!

@LuisReinoso
Copy link

Check this: #108 (comment)

@PhilippRoessner
Copy link

@LuisReinoso the suggested solution changes the format globally. Is there a way to specify a format for a specific case in one component?

The docs say

Takes an optional omitSuffix argument that defaults to false and another optional formatFn function which can be used to customise the format of the time ago text.

Is the optional formatFn the way to go? How can we use it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants