Integer maximum?
#1

Hello, again a question,

why returns this a value of -641134592

expirestamp = 7948800000;

Is this number to long??
Reply
#2

Yes.

Minimun : -2.147.483.648
Maximum : 2.147.483.647
Reply
#3

Thanks, that sucks a little... so working with timestamps isn't an option in this case...

[EDIT] pfff, never trust tutorials on the internet, it seems timestamp is in seconds and not in milliseconds...
Reply
#4

YOu could make a stock to make time stamps divide into little stamps solving your problem.
Reply
#5

Quote:
Originally Posted by IceCube!
Посмотреть сообщение
YOu could make a stock to make time stamps divide into little stamps solving your problem.
Not really, considering 'too big numbers' would still be returned as random values from GetTickCount
Reply
#6

Quote:
Originally Posted by Hiddos
Посмотреть сообщение
Not really, considering 'too big numbers' would still be returned as random values from GetTickCount
Oh yeah, sorry I wrote somthing really stupid today :P.
Reply
#7

or use gettime() which will return a current time stamp in seconds
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)