ngx-pipes icon indicating copy to clipboard operation
ngx-pipes copied to clipboard

New feature request: "TimeTo" pipe

Open yannpiot opened this issue 3 years ago • 2 comments

I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[X] feature request

Ngx-pipes version:
2.7.5

Current behavior There is a TimeAgo pipe for past dates, but no "TimeTo" pipe for upcoming dates.

Expected behavior TimeTo pipe would work similar to TimeAgo and return a string e.g. "in 2 weeks", "in one year", "in 12 hours and 23 minutes".

Minimal reproduction of the problem with instructions

Please tell us about your environment: Not relevant

  • Angular version: 9.0.0
  • Node (for AoT issues): node --version =

yannpiot avatar May 26 '21 02:05 yannpiot

Sounds good. Do you want to make a PR for this one?

danrevah avatar Aug 25 '21 09:08 danrevah

I already have the code for this, how do I make the PR?

pedro-deleon avatar Sep 12 '21 22:09 pedro-deleon