Get seconds from 1970
| Gang | |||
| Hello, I have some problem. I need to calculate how many seconds gone since 1970. I used tm structure and mktime()function, but I have wrong results. Here is the code:
I`ve got 1207748382 instead of 3416917182. What I`am doing wrong? Thx for the help ) | |||
| Zaita | |||
| Edit. Easier way. http://www.cplusplus.com/reference/clibrary/ctime/difftime.html | |||
Registered users can reply in this forum.
