Perl is my friend :)))

Best,
Paul


-----Original Message-----
From: Bob Proulx [mailto:b...@proulx.com] 
Sent: Tuesday, July 28, 2009 8:29 PM
To: Paul Grinberg
Cc: bug-coreutils@gnu.org
Subject: Re: Bug report for "date"

Paul Grinberg wrote:
> Thank you for your reply. You are right, I am trying to calculate time
> backwards....it only allows 6 days back...i need 7 :) the whole week
:)
>
> Unfortunately in solaris it does not work :(((

Well, this is the mailing list for the GNU system's date and so you
wouldn't expect us to suggest anything other than that perhaps you
might consider switching to the GNU system.  It works there!  :-)

> # date -R --date="-14 days"
> date: illegal option -- R
> date: illegal option -- date=-14 days
> usage:  date [-u] mmddHHMM[[cc]yy][.SS]
>         date [-u] [+format]
>         date -a [-]sss[.fff]

Well, that isn't the GNU date so there isn't anything that we can say
here that will help you there.  Good luck!

Do you have Perl, Python or Ruby?  You might try doing date
calculations using Perl and the Date::Calc library.

Bob


_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to