of     3   
chevron_rightchevron_rightchevron_right

idontkno
#52663020Friday, August 12, 2011 8:41 PM GMT

"The number 2,147,483,647 is also the maximum value for a 32-bit signed integer in computing. It is therefore the maximum value for variables declared as int in many programming languages running on popular CPUs, and the maximum possible score (or amount of money) for many video games." That is also true for roblox. tick() = Unix time Unix: "is a 32-bit signed integer counting the number of seconds since the start of the Unix epoch (midnight UTC of 1 January 1970)" The problem occurs at 03:14:07 UTC on Tuesday, 19 January 2038, when the integer time value will reach the max integer value of 2,147,483,647, and malfunction. 1 second later, the time malfunctions and will display -2,147,483,648, causing programs to think the year to be 1901. I came across this the other day and thought this was an interesting matter. This problem will will adversly affect many programs, not just roblox. What are your opinions? What do you think roblox and everything else affected by this will do?
blocco
#52663105Friday, August 12, 2011 8:42 PM GMT

noduh?
QuintinityZero
#52663106Friday, August 12, 2011 8:42 PM GMT

That's interesting. It will be like a time machine.
Roundel
#52663230Friday, August 12, 2011 8:44 PM GMT

Pokemon's highest amount of money possible is 999,999 credits.
pokelover980
#52663304Friday, August 12, 2011 8:45 PM GMT

Good thing most systems are moving to long ints now to avoid this problem! I presume Lua will also use a 64-bit integer for Unix time by then as well if it already doesn't, so there shouldn't be a large problem.
61352151511
#52663365Friday, August 12, 2011 8:45 PM GMT

they could re make tick so it is seconds from the year 2038        ~ Mitch ~ ~~ Dumbledoor ~~
aboy5643a
#52663475Friday, August 12, 2011 8:47 PM GMT

No the biggest number is 45 billion. ~Post here if you're Viet Namese, Canadian or Chinese. I'm from these 3 places. - Some confused kid from Language Center ~
Shobobo99
#52663558Friday, August 12, 2011 8:48 PM GMT

Lol computers will think its 1901? Isn't that a paradox... considering they didn't even exist.
idontkno
#52664123Friday, August 12, 2011 8:55 PM GMT

@shobobo99 lol ikr? thats kind of iron and funny :P
idontkno
#52664171Friday, August 12, 2011 8:55 PM GMT

ironic*
Person299
#52665591Friday, August 12, 2011 9:13 PM GMT

Why didn't they make it unsigned anyway?
pokelover980
#52665637Friday, August 12, 2011 9:14 PM GMT

"Why didn't they make it unsigned anyway?" What if you want dates before 1970?
eyeontheprizeREBOOT
#52665665Friday, August 12, 2011 9:15 PM GMT

^ this
idontkno
#52735409Saturday, August 13, 2011 8:31 PM GMT

lol. the max number seems so random too.
NecroBumpist
#52735646Saturday, August 13, 2011 8:34 PM GMT

"What if you want dates before 1970" 69 years isn't all that useful to go back. Anyway, I thought the time stamp was supposed to be the count of how long PAST 1970. It shouldn't be signed, and it will be promoted to 64 bits soon if it hasn't already. -NecroBumpist, Master of Lua, Writer of Wikis ◕ ‿‿ ◕
Roundel
#52735647Saturday, August 13, 2011 8:34 PM GMT

The max number is 2^31-1 because it's a 32 bits.
idontkno
#52758211Sunday, August 14, 2011 2:00 AM GMT

hows 2^31-1 come from 32 bits?
pokelover980
#52758711Sunday, August 14, 2011 2:07 AM GMT

@Idontkno: 2^31 because you only get 31 bits for the actual numbers, the 32nd bit is the sign bit determining if it's positive or negative. The subtraction of one is because of the way binary is.
PsychoBob
#52761623Sunday, August 14, 2011 2:47 AM GMT

I think it was Unix's fault for making it a signed integer rather than unsigned.
[rfa#hidefromsearch]
#52761755Sunday, August 14, 2011 2:49 AM GMT

[rfa#hidefromsearch]
pokelover980
#52761950Sunday, August 14, 2011 2:52 AM GMT

"I think it was Unix's fault for making it a signed integer rather than unsigned." Once again: What if you want times before 1970? You may think that they either aren't useful or you could use some other date storage format, but Unix time is a simple format and takes up less memory in comparison, and is easier to add time to than other formats.
jode6543
#52762153Sunday, August 14, 2011 2:54 AM GMT

Wikipedia much...?
belial52
#52763036Sunday, August 14, 2011 3:07 AM GMT

I thought it was supposed to reset to 0 at that time...
garrett223
#52764489Sunday, August 14, 2011 3:31 AM GMT

"69 years isn't all that useful to go back. Anyway, I thought the time stamp was supposed to be the count of how long PAST 1970. It shouldn't be signed, and it will be promoted to 64 bits soon if it hasn't already. -NecroBumpist, Master of Lua, Writer of Wikis ◕ ‿‿ ◕ " LOL 69
blobbyblob
#52766223Sunday, August 14, 2011 4:00 AM GMT

Too bad tick() doesn't even return an integer.

    of     3   
chevron_rightchevron_rightchevron_right