Can Arduino read Time ?

Hello everybody,

I want to know please is there a function or any idea that makes the Arduino know that time (clock) ?

Thanks in advance

You need a Real Time Clock chip like the DS3231. Easiest way is to get one on a small board like this ChronoDot.

so there's nothing that can be done by programming ??

Using the Time library you can create a clock without using an RTC but it will not keep time accurately over a period of time. What period of time and accuracy did you have in mind ?

...or you could get an ethernet-capable arduino and make use of NTP.

Lamya: so there's nothing that can be done by programming ??

With reference to . . . what?

UKHeliBob: Using the Time library you can create a clock without using an RTC but it will not keep time accurately over a period of time. What period of time and accuracy did you have in mind ?

I need it to be accurate (hour/minute/second) or maybe (hour/ minute) is enough

With reference to . . . what?

I mean only programming, without using any extra components

No, I mean “How do you expect the Arduino to know what time it is…now, without extra hardware?”

that's what I'm asking, if there is a way to make that happen by programming cuz somebody told me that there might be a function to do so, but I guess you gave me the answer, so thank you.