31 Mar
2011
31 Mar
'11
1:43 p.m.
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? -- Mark Rogers // More Solutions Ltd (Peterborough Office) // 0844 251 1450 Registered in England (0456 0902) @ 13 Clarke Rd, Milton Keynes, MK1 1LG