Bob Proulx wrote: > $ date -d "$(date -R)" +%s > 1200610873 > > Unfortunately use of -R is not portable. POSIX defines -u however. > That might work better for you in your task anyway. > > $ date -u > Thu Jan 17 23:03:27 UTC 2008 > > $ date -d "$(date -u)" +%s > 1200611075
Oh silly me... Since date -d is not portable either there is no concern about using -R. If you are using -d then there is no reason not to use -R too. I wish I had realized that before I add that part to the message. Bob _______________________________________________ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils