Neppomuk
Neppomuk

Reputation: 1210

Which value will gettimeofday () return when the system's RTC has not yet been set to the current time?

It's about an all-fresh system without NTP or any other external time signal source, whose real-time clock hasn't even been set yet manually. When I query it by using

int gettimeofday (struct timeval *tv, struct timezone *tz);

…which return value resp. timeval struct will I get then? A random one, one representing the "epoch" (1970-01-01), or some kind of error?

Upvotes: 2

Views: 111

Answers (0)

Related Questions