On 31/03/11 13:33, Chris G wrote:
Sadly my WD NAS doesn't know about 'yesterday' :- root@backup# date -d yesterday +%a date: invalid date `yesterday' root@backup#
The NAS uses busybox for the bulk of its commands and 'date' is among those so I guess it's a fairly limited implementation.
A trick I found via Google for a similar situation was: env TZ="UTC+24" date +%a
but it's not something you can assume will work everywhere. Maybe it'll work for you?