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/
