Sorry, I don't understand your question.
PS: 5th june'04 was a saturday, NOT a sunday

> 1)how does the above command identify the testrefresh.rman script and also the directory u01/backup/sunday to do the restore ??

Thats where (the directory) I presume you backed up (and restored your backup) on that Sunday. That's how.