Cast (int)qint64 ??
-
i have a qint64 var1 = 1345830775404
and int var2 = (int)var1; (var2 becomes 1506011756, what gives?)To clarify what i am trying to do is to get in an integer the seconds since 1970 January 1st
in an application online it returns 1345830763 seconds.
so it seems is just have to "cut off" the last 3 digits..
ideas? -