0

What does the (time(0) function do?

I tried using the time function on its own and it’s output was a big random number. What is it showing??

11th Apr 2018, 11:28 PM
Kyle
Kyle - avatar
1 ответ
+ 2
Time in seconds between 00:00 01-01-1970 and actual date and hour. I believe in C++ are libraries which can format in to normal date, but I don't know any of them.
11th Apr 2018, 11:31 PM
Bartosz Pieszko
Bartosz Pieszko - avatar