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

Feature request: support future times #23

Open
isaackwan opened this issue May 10, 2018 · 4 comments
Open

Feature request: support future times #23

isaackwan opened this issue May 10, 2018 · 4 comments

Comments

@isaackwan
Copy link

Currently it shows the diff in "xxx ago" which can be confusing at times.

Cheers :)

@binarypatrick
Copy link

Have you tried {{ (someDate | timeago).replace(' ago', '') }}

@seiyria
Copy link

seiyria commented Jun 15, 2018

@binarypatrick that works, but having it built in would be nicer. I wanted to make a pipe that wraps this pipe, but ran into injector errors (not sure why), so just having this built in would alleviate that sort of issue as well.

The other issue is that going in reverse will not work correctly with the timer that is set. It assumes that timestamps only move in the forward direction.

@binarypatrick
Copy link

I completely agree. Maybe it would be better to create a timeUntil pipe that mirrors timeAgo in the other direction.

@seiyria
Copy link

seiyria commented Jun 16, 2018

I ended up using https://www.npmjs.com/package/ngx-timeago which handles both cases with one pipe (which is ideal).

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