Simple past or Present perfect..
I understand that OP wants to know if Present perfect can be used when you don't know the time of the action.
Example
A: A stupid guy threw trash here!
B: When did it happen?
Example 2.
A: A stupid guy has thrown trash here!
B: When did it happen?
Ref Adventures with Grammar and Composition, Beena Sugatham. Oxford Printing Press.
We use simple past tense.
'1. to talk about actions completed in the past once or over a period of time.
Examples:
a. I danced all night.
b. Fia did not cry when she lost her cat.
We use present perfect tense.
'1. to show completed actions in the immediate past (things that have just happened) but have some connection to the present.
a. Their cousins have just arrived.
b. She has already finished her project
We can use both the tenses. The connection to the present in Present perfect is that the trash is still lying there. Time of the action doesn't matter.