The Info node "Relative items in date strings" and/or "Examples of `date'" lack an example of how one can specify the next occurrence of say 17:30. I.e. if now the time is 15:00, our -d string will print $ date -d 'xxxxx' Fri Aug 15 17:30:00 GMT-8 2003 but if now is 18:00, then the very same -d string will print $ date -d 'xxxxx' Sat Aug 16 17:30:00 GMT-8 2003
Tell the user what to use where I put xxxxx, or tell the user it is impossible and he needs to what yyyy;zzzz shell script instead. No, it's not $ date -d 'next 17:30' date: invalid date `next 17:30' If the best way to do it is t=17:30 echo -n "The next occurrence of $t is " if test `date +%s -d $t` -gt `date +%s` then date else date -d "$t tomorrow" fi then say so. P.S. after the Date info pages, one hits Toolbox Introduction ==================== This month's column is only peripherally related to the GNU Project, Hey, I'm reading Info. Not a 'This month's column' ... please edit. _______________________________________________ Bug-coreutils mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-coreutils
