The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
int(11) and unix timestamp
What is the biggest number / date that can be stored in a field of type int(11)? Just curious.
:cheeky: |
#2
|
|||
|
|||
Theoretically the largest would be 99999999999 which would produce the date of: Wed, 16 Nov 5138 09:46:39 UTC
|
#3
|
||||
|
||||
I somewhat doubt we'll use mySQL in year 5138 ^.^
|
#4
|
|||
|
|||
Quote:
|
#5
|
||||
|
||||
actually dark wizard is not correct here.
INT datatype is a 32 Bit integer, so if signed, then the biggest value is 2^31 - 1 = 2.147.483.647 the (11) is useless as no int 32 can ahve more than 10 chars. so to using the calculator gives you '19 Jan 2038' as biggest timestamp. |
#6
|
|||
|
|||
Yep, that's the "real" y2k scare Xenon
though technically a timestamp is of type LONG not INT, INT's are only 16bits while LONG's are 32bits (on most architectures) |
#7
|
||||
|
||||
So I've got some time before I have to worry.
|
#8
|
||||
|
||||
Ahh, time flies Jake
@Modin: thechnically LONG is just the short form of LONG INTEGER, so INT is the correct thing here |
#9
|
|||
|
|||
Quote:
|
#10
|
||||
|
||||
yay
you cannot be correct everytime even i make mistakes (at least the others say so ^^) |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|