![]() |
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: |
Theoretically the largest would be 99999999999 which would produce the date of: Wed, 16 Nov 5138 09:46:39 UTC
|
I somewhat doubt we'll use mySQL in year 5138 ^.^
|
Quote:
|
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. |
Yep, that's the "real" y2k scare Xenon :D
though technically a timestamp is of type LONG not INT, INT's are only 16bits while LONG's are 32bits (on most architectures) ;) |
So I've got some time before I have to worry. :eek:
|
Ahh, time flies Jake ;)
@Modin: thechnically LONG is just the short form of LONG INTEGER, so INT is the correct thing here ;) |
Quote:
|
yay ;)
you cannot be correct everytime ;) even i make mistakes (at least the others say so ^^) |
All times are GMT. The time now is 09:57 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|