Hi! I am trying to set up a command that counts the days since last PB, but can’t figure out how to set it up with a customized output in the form of only stating the days since.
I have done:
!addcom !lastpb It has been $(countup Jan 06 2022 America/Los_Angeles) since last PB
However the output of this is:
“It has been 6 months 13 days 6 hours 35 minutes since last PB”
Whereas I want the command’s output to have the time-format of “It has been 194 days since last PB”
Does anyone know how to set this up? It doesn’t have to be based off my original command in any way, I just want it to be formatted as only counting days hehe
This isn’t possible because of how the library used under the hood does things.
What we usually do is cut the response in categories, then multiply each value by a “magic” number (called magic because they’re “arbitrary,” static and will generate erroneous conversions: a month has between 28 and 31 days, a year is either 365 or 366 days, that’s difficult to keep up with).
You can see an example of a similar command here, but for them it works because they wouldn’t stream for more than a day or so, they don’t reach months.