Search found 1 match

by xyz`
Sun Aug 09, 2009 1:53 pm
Forum: Bug Reports
Topic: libnds: time() value
Replies: 1
Views: 4417

libnds: time() value

the time() function seems to return an inaccurate value.

on my computer, I get 1249821101, but on the ds it shows 1249795886. (~25000 seconds difference)

but when I do:
time_t ut = time(NULL);
tm* z = localtime(&ut);
printf("%d:%d:%d", z->tm_hour, z->tm_min, z->tm_sec);
on the ds, it correctly ...