• This: [years-since y=2019 m=12 d=31].

    will show this: 4 years 3 months 18 days.

    if I add text=false then just 4.

    Something happened on this latest update. I AM NOT SAYING THE LATEST UPDATE IS BAD.

    How can I chose to just show 4 years like it was before the latest update? What if I wanted 4 years 3 months?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author laurencebahiirwa

    (@laurencebahiirwa)

    Hi @miroslavglavic

    Thanks for reporting this. In a previous update, I had broken the functionality. However, after writing automated tests for the plugin, I realized this and fixed it as originally intended.

    Your question helps me to know that I need to write the documentation better.

    Writing:
    – [years-since y=2019 m=12 d=31] as you have noted will give you the years, month and days.
    – [years-since y=2019 m=12] will give you the years and months only.
    – [years-since y=2019] will give you the years only.

    Jumping onto this thread with a relevant question…

    I’d like to add the Year, Month, Date for the purpose of calculation, but only display the Year.

    For example, if the business started on Nov 15, 2020, I’d like to say that it’s been around “3 years” up until Nov 15, 2024, when it switches to “4 years”.

    However if I put: [years-since y=2020 m=11 d=15] it displays as “3 years, 5 months, 2 days” — whereas I’d like it to just say “3 years”.

    Is this possible? To enter the full day for the calculation, but only display the year? Thank you

    • This reply was modified 7 months, 3 weeks ago by pauldrecksler.
    Plugin Author laurencebahiirwa

    (@laurencebahiirwa)

    @pauldrecksler I have thought about this. Can you open a new ticket for this as a feature request? I have thought about it myself. It could help in many cases.

    Sure thing. Will do. Thanks.

    Plugin Author laurencebahiirwa

    (@laurencebahiirwa)

    Hi @miroslavglavic, was this helpful?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘how to filter what shows’ is closed to new replies.