Read/Write micro sd and ds1307 at the same time?

there are any way to work the micro sd and RTC ds1307 at the same time (with arduino ethernet)?
I need when the pin read an event, the time from rtc write on the sd card after that I want to read the data from sd card. I do not have a code because I do not know if the idea works.

any suggestions thanks.

It doesn't seem as if you need to read both devices at exactly the same instant - you need to find the time, and then write something to the SD card.

I suspect you may find that there is already a library to keep track of 'real time' for you by taking reference times from the RTC and then using millis() to work out how much time has elapsed subsequently. If not, I'm sure you could write something to do that. In that case, you might not actually need to read from the RTC right when the sample arrives - just read the current time occasionally to make sure the Arduino's view of time stays reasonably accurate.