what is the syntax of time():

what does the time function do? i cant find the details for the time function on google

Learn how to use google

Mark

what does the time function do?

You assume, incorrectly, that the Arduino has a time() function. It does not.

What about the time() function in time.h? AFAIK, all the standard C headers are automagically included.

Perhaps your question will be answered here Arduino Playground - Time