I REALLY LIKE "remind fans" Did not know about dpkg-query (or forgot) - must get into the manpage on that again.
Thank you... 20 Feb 20 @ 00:58:58 ~ $ dateutils.ddiff 2020-02-19 2042-02-29 -f '%yy %ww %dd' 22y 1w 2d 20 Feb 20 @ 01:00:08 ~ $ echo "Bob will be 47 in $(dateutils.ddiff 2020-02-19 2042-02-29 -f '%yy %ww %dd')" Bob will be 47 in 22y 1w 2d Thank you taekoocair Bruce On Thu, 20 Feb 2020 12:36:45 +0900 taekoocair--- via Remind-fans <[email protected]> wrote: > In general, you can use dpkg-query to find out what files an installed dep > package provides: > > $ dpkg-query -L dateutils > ... > /usr/bin/dateutils.dadd > /usr/bin/dateutils.dconv > /usr/bin/dateutils.ddiff > /usr/bin/dateutils.dgrep > /usr/bin/dateutils.dround > ... > > So it looks like Debian installs the binaries with a special prefix. > > Cheers, > > Sector11 <[email protected]> wrote: > > Awesome Larry thank you ... > > > > If not one problem another. > > Dateutils is installed but cannot find ddiff ???? > > ------------------- > > $ apt list -a --installed dateutils > > Listing... Done > > dateutils/stable,now 0.4.3-1 amd64 [installed] > > > > $ ddiff 2020-02-19 2042-02-29 -f '%yy %ww %dd' > > bash: ddiff: command not found > > > > Thank you will ask questions in my Linux Forum > > Bruce > > > > > > > > On Wed, 19 Feb 2020 23:12:52 +0000 > > Larry Hynes via Remind-fans <[email protected]> wrote: > > > > > Dianne Skoll <[email protected]> wrote: > > > > On 2020-02-18 09:36, Sector11 wrote: > > > > > > > > > Bob (will be) 47 in 3m 6d > > > > > Christmas (in) 5m 16d > > > > > Debian 11 (in) 3y 5m 18d > > > > > > > > Remind does not have a built-in way to express a duration as X > > > > years, Y months and Z days. In general, there's no way to express a > > > > time interval that way unless you know the duration in days and the > > > > starting point (or equivalently, the ending point.) > > > > > > OT, but of possible help to the OP, I think ddiff(1) from > > > dateutils[0] will do what's required e.g., the command: > > > > > > ddiff today 2042-02-29 -f '%yy %ww %dd' > > > > > > yields the result: > > > > > > 22y 1w 2d > > > > > > It would probably be easy enough to get remind to RUN a suitable > > > script or command, or incorporate it with remind's output in some > > > way. > > > > > > $ cat test.rem > > > REM Feb 19 MSG Test > > > > > > $ cat test.sh > > > > > > #!/bin/sh > > > > > > remind ~/test.rem > > > > > > echo "Bob will be 47 in $(ddiff today 2042-02-29 -f '%yy %ww %dd')" > > > > > > $ sh test.sh > > > > > > Reminders for Wednesday, 19th February, 2020 (today): > > > > > > Test > > > > > > Bob will be 47 in 22y 1w 2d > > > > > > [0]: https://www.fresse.org/dateutils/ > > > _______________________________________________ > > > Remind-fans mailing list > > > [email protected] > > > https://dianne.skoll.ca/mailman/listinfo/remind-fans > > > Remind is at https://dianne.skoll.ca/projects/remind/ > > _______________________________________________ > > Remind-fans mailing list > > [email protected] > > https://dianne.skoll.ca/mailman/listinfo/remind-fans > > Remind is at https://dianne.skoll.ca/projects/remind/ > _______________________________________________ > Remind-fans mailing list > [email protected] > https://dianne.skoll.ca/mailman/listinfo/remind-fans > Remind is at https://dianne.skoll.ca/projects/remind/ _______________________________________________ Remind-fans mailing list [email protected] https://dianne.skoll.ca/mailman/listinfo/remind-fans Remind is at https://dianne.skoll.ca/projects/remind/
