|
From: | Bob Proulx |
Subject: | Re: PDT timezone bug in GNU coreutils "date" v6.9 |
Date: | Thu, 17 Jan 2008 16:13:58 -0700 |
User-agent: | Mutt/1.5.13 (2006-08-11) |
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
[Prev in Thread] | Current Thread | [Next in Thread] |