End of Time (Unix) - Numberphile

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ส.ค. 2024
  • Time will "end" for 32-bit computers on 19 January, 2038.
    James Clewett explains.
    More links & stuff in full description below ↓↓↓
    We love this real time Unix clock: www.coolepochco...
    NUMBERPHILE
    Website: www.numberphile...
    Numberphile on Facebook: / numberphile
    Numberphile tweets: / numberphile
    Subscribe: bit.ly/Numberph...
    Videos by Brady Haran
    Patreon: / numberphile
    Brady's videos subreddit: / bradyharan
    Brady's latest videos across all channels: www.bradyharanb...
    Sign up for (occasional) emails: eepurl.com/YdjL9
    Numberphile T-Shirts: teespring.com/...
    Other merchandise: store.dftba.co...

ความคิดเห็น • 2.9K

  • @matthewrease2376
    @matthewrease2376 3 ปีที่แล้ว +203

    I like how, with 32 bits you have about 70 years. And then you double that, to 64 bits, and suddenly increase the time span past the estimated lifespan of the universe.
    Numbers are great.

    • @michakrzyzanowski8554
      @michakrzyzanowski8554 3 ปีที่แล้ว +12

      it's not doube, it's raised to the power of 2

    • @lonestarr1490
      @lonestarr1490 2 ปีที่แล้ว +30

      @@michakrzyzanowski8554 He meant you double the number of bits.

    • @sammyspan649
      @sammyspan649 2 ปีที่แล้ว +1

      Y10K

    • @wil-fri
      @wil-fri 2 ปีที่แล้ว +1

      it also depends on how much precision you want

    • @problemecium
      @problemecium ปีที่แล้ว

      only problem is that the year 292 billion and change is nowhere close to the actual estimated life span of the universe. With any luck there'll still be a thriving civilization of future people (obviously quite different from us, but our descendants nonetheless) who will have to contend with this problem just as we do today. Maybe they'll already be using higher bit widths in their computers, or more likely they'll have long since done away with Unix time. But as far as we can tell with what we know of physics today, the universe will very much still be there and not terribly different from today. The familiar galaxies will be completely changed, and most of the familiar stars will be long gone, but there will be new stars in their places (and red dwarfs like Barnard's Star or Proxima Centauri stand a decent chance of lasting that long).

  • @devangliya7131
    @devangliya7131 6 ปีที่แล้ว +253

    This dude is happy af

    • @venivedivicinonchalantgass
      @venivedivicinonchalantgass 6 ปีที่แล้ว +10

      DEVANG LIYA like he ready to die 😂😂😂😂😂

    • @Paul-qn7qv
      @Paul-qn7qv 2 ปีที่แล้ว +5

      Yup. It happens to me too when I talk about stuff I love :)

  • @clickrick
    @clickrick ปีที่แล้ว +5

    "Some of your viewers were too young for the millennium bug."
    I was there, I was part of the crew that was desperately fixing those legacy systems.
    Actually, I was using Unix in the 1970s and marvelling at this beautiful new operating system, and knew even then of the shortcomings of the epoch-based times, and knew in 1999 that the millennium bug was going to be nowhere as bad as when the Unix time hit the brick wall.

    • @Frankoman64
      @Frankoman64 2 หลายเดือนก่อน

      Exactly! I hate when people make fun of y2k. It was a real problem that people like you fixed.

  • @soundslave
    @soundslave 9 ปีที่แล้ว +194

    Another Y2K thing that'll be fixed before it actually becomes a problem.

    • @henrytoss
      @henrytoss 9 ปีที่แล้ว +1

      soundslave I believe this too, it will be fixed before the problem arise.

    • @harrytsang1501
      @harrytsang1501 9 ปีที่แล้ว +7

      soundslave Developer should not write x86 code as main anymore, it MUST completely replace by x64 before that day

    • @OriginalAphala
      @OriginalAphala 9 ปีที่แล้ว

      soundslave time_t m7

    • @Navhkrin
      @Navhkrin 9 ปีที่แล้ว +3

      ***** No they dont, they could but they dont, because its inefficent to calculate numbers using multiple numbers. And btw, it will probably play a more dramatic role. They will probably keep it until the date comes and reset the whole value, ending an old era and starting a new one using 64bit counter. Until that one runs out too. Which wont end anytime soon

    • @nameguy101
      @nameguy101 8 ปีที่แล้ว +3

      +Navhkrin This is the cringiest comment thread in history

  • @hydroxenon9364
    @hydroxenon9364 8 ปีที่แล้ว +383

    They celebrated on September 9, 2001. Little did they know what would happen in 2 days

    • @lebanthen
      @lebanthen 8 ปีที่แล้ว +6

      celebrated what

    • @hydroxenon9364
      @hydroxenon9364 8 ปีที่แล้ว +83

      +Alex Lehtinen 1,000,000,000 in UNIX time. Watch the video

    • @Thomasynthesis
      @Thomasynthesis 7 ปีที่แล้ว +12

      +Alberto Sanchez ARE YOU ABLE TO READ? HE SAID 9/9 NOT 9/11

    •  7 ปีที่แล้ว +20

      They're not American, so that was no big deal.

    • @billybassman21
      @billybassman21 7 ปีที่แล้ว +3

      +Alberto Sanchez Then you wonder why there are people that want to deport your kind in the USA.

  • @AsbjornGrandt
    @AsbjornGrandt 10 ปีที่แล้ว +106

    32 bit computers themselves aren't really the problem, as long as the software counts the time in 64 bit.
    I have a 4 bit computer, which handles 64 bit numbers just fine. (HP-48)

  • @yessopie
    @yessopie 10 ปีที่แล้ว +164

    Everyone seems to be making the same mistake: it doesn't make a difference whether you have a "32-bit computer" or a "64-bit computer". A 32-bit computer can deal with 64-bit numbers perfectly easily, and a 64-bit computer can deal with 32-bit numbers perfectly easily. It's just slightly more efficient to use a matching length. The point: switching to a "64-bit computer" is neither necessary nor sufficient to solve the problem.

    • @shambhav9534
      @shambhav9534 2 ปีที่แล้ว +5

      Yep, 16 bit Unix machines back in the day also probably stored it as a 32 bit signed integer.

    • @sanjacobs6261
      @sanjacobs6261 2 ปีที่แล้ว

      @@shambhav9534
      >signed
      Are you sure about that?

    • @shambhav9534
      @shambhav9534 2 ปีที่แล้ว +2

      @@sanjacobs6261 Unix & C love signed integers and HATE unsigned stuff for some reason.

    • @sanjacobs6261
      @sanjacobs6261 2 ปีที่แล้ว

      @@shambhav9534 What do you mean by hate?

    • @shambhav9534
      @shambhav9534 2 ปีที่แล้ว +1

      @@sanjacobs6261 Even if negative integers aren't an option, they'll still make it a signed int.

  • @charliefoxtrotthe3rd335
    @charliefoxtrotthe3rd335 9 ปีที่แล้ว +100

    The company I work for still, to this day, has this old green screen management system that runs on it's own special hardware platform that was obsolete in 1990, so we purchased all the spares we could get are hands on to keep this dinosaur running. It's called AS 400. It's a first generation IBM server. It works so well for our application and is so fast that I cannot get the old timers to upgrade to a new Oracle system or something like that. The green screen will burn holes into your eyeballs from staring at it for long periods. The actual machine is this big, clunky, noisy thing with fans blowing all around to keep it from igniting. Anyone else deal with a system like this?

    • @abdalazizaljurf633
      @abdalazizaljurf633 9 ปีที่แล้ว +5

      +Täking Thë High Roäd Yep, government consoles in Syria. These things are scary.

    • @MelindaGreen
      @MelindaGreen 8 ปีที่แล้ว +4

      +Täking Thë High Roäd I've programmed on punchcards. The punching machine was a horrible monstrosity even though it seemed sort of cool at the time. Monitors were just then coming out and THAT was beyond cool.

    • @compu85
      @compu85 8 ปีที่แล้ว +2

      +Täking Thë High Roäd A client I supported had a similar RS6000 machine doing their payroll and check processing. I'd tell the CFO that every time I walked past the machine I saw a Loony Toons style cartoon bomb with the fuse sizzling.

    • @allanrichardson1468
      @allanrichardson1468 8 ปีที่แล้ว +5

      +Jimmy Smith Ironically, when a system begins to reach obsolescence, it gets donated to a school, so the techs of the future train on the machines of the past.

    • @MelindaGreen
      @MelindaGreen 8 ปีที่แล้ว +3

      Allan Richardson
      Until we invent time machines, all students will train on machines from the past.

  • @aadityabrahmbhatt
    @aadityabrahmbhatt 10 ปีที่แล้ว +145

    Cool This means when you were showing your screen counting the second in Unix manner of 1340197909...
    It was Wed, 20 Jun 2012 13:11:49 GMT !!!!
    BUT the video was published on "Jan 29, 2013"
    & it worse thing that your awesome video was pushed in your Hard Disk for about 223 Days !!!
    WHY????
    But Publishing Date Jan 29, 2013 Is amazingly the exact 1 year before I am viewing the video on "Jan 29th, 2014" !!!!
    HOW AMAZING :-)
    This is real NumberPhile ;-)

  • @ChaosTheSalamander
    @ChaosTheSalamander 10 ปีที่แล้ว +154

    um...DAD? I THINK THE COMPUTOR IS GONNA DIE!

  • @jamesthurlow466
    @jamesthurlow466 8 ปีที่แล้ว +119

    I saw that number and just thought, max cash stack on runescape

    • @hieriseli1
      @hieriseli1 8 ปีที่แล้ว +1

      Omg

    • @scathiebaby
      @scathiebaby 8 ปีที่แล้ว

      WTF iz Runescape

    • @hieriseli1
      @hieriseli1 8 ปีที่แล้ว +3

      scathiebaby what?!? A game.

    • @static_motion
      @static_motion 6 ปีที่แล้ว +10

      RuneScape taught me the maximum value of a 32 bit integer well before I knew what "32 bit integer" meant.

    • @wandatoress8228
      @wandatoress8228 6 ปีที่แล้ว

      Felipe Varela how?

  • @ragamuff1n
    @ragamuff1n 8 ปีที่แล้ว +28

    Just wanted to make a small nitpick - Clewett states that an 8-bit unsigned integer can hold a range of values from 0 to 256, when in fact the maximum value is 255.

    • @schopengaard9796
      @schopengaard9796 2 ปีที่แล้ว +4

      No, he says "it can count up to a maximum of 256". Which is correct.
      I don't hear anything about any value in his phrasing.
      5 years later so I don't even know why I'm commenting =)

    • @PauloConstantino167
      @PauloConstantino167 2 ปีที่แล้ว +1

      @@schopengaard9796 No. An 8 bit unsigned number can count up to 255 only, not 256.

    • @sanjacobs6261
      @sanjacobs6261 2 ปีที่แล้ว +2

      @@schopengaard9796 "256 numbers" would be correct, but not just "to 256". And he did say a maximum of 256 and a minimum of 0.

    • @dp055
      @dp055 6 หลายเดือนก่อน

      Upto 256 means 0 to 255

  • @ClySuva
    @ClySuva 9 ปีที่แล้ว +19

    I remember this 1 000 000 000 timestamp causing lots of issues as well. Many amateur PHP/MySQL systems actually sorted timestamps alphabetically. In this case the 1bil numbers came before anything else which began with 9.
    I just recently saw some production system that sorted files by date by concatenating datestamp to string, alphabetically sorting them, and then removing the timestamp. :D

  • @doogleisfat
    @doogleisfat 11 ปีที่แล้ว +12

    More videos with James please Brady - this guy is great, his contribution to this channel has already been brilliant.

  • @CoreFinder100
    @CoreFinder100 9 ปีที่แล้ว +605

    by 2038, I can't see why people would use 32bit..

    • @brotalnia
      @brotalnia 9 ปีที่แล้ว +28

      CoreFinder100 Retro PC Gaming? I have a pentium 3 pc that i play dos games on. I don't really think this date thing will be a problem tough, i'll just rewind the date in the bios settings.

    • @Navhkrin
      @Navhkrin 9 ปีที่แล้ว

      mPky1 SystemCurrenttimemillis returns long value, you just said longs are 64bits, but you also said currenttimemilis is 32bit, dafuq?

    • @RobinLynn331
      @RobinLynn331 9 ปีที่แล้ว +1

      this thread is still going? o.o

    • @TheSwagGuy5000
      @TheSwagGuy5000 7 ปีที่แล้ว

      Alquimerico

    • @davidolsen1222
      @davidolsen1222 7 ปีที่แล้ว

      The software was compiled with 32 bit time in software. Even on a 64 bit computer the registers are the same. The command in 32 bit x86 is the same you move 32 bits from this register to that one. You could use a different register with the full 64 bits. But, you would have to recompile the programs. But, moreover you would have to change the sourcecode to use longs rather than ints. And that actually changes things a lot of time. If a programmer called 0xFFFFFFFF to be -1 because it is, when you use an int but you converted to longs without fully bug checking everything, you could cause serious problems. And this would require everybody recompile their code anyway to switch to 64 bits. But, stopping mission critical systems to change software can introduce bugs and cost billions. It's simply a giant risk to upgrade to new software when the older software has been working great for 20 years.

  • @arrowed_sparrow1506
    @arrowed_sparrow1506 5 ปีที่แล้ว +25

    Well, it's 2019. And I recently fixed a McDonald's register "system"..... It was running WINDOWS 98!! Why? Because it just works.

    • @pabloski10k
      @pabloski10k 3 ปีที่แล้ว +9

      You made me remember something. When Windows abandoned its support for the XP and left it vulnerable to viruses, it was discovered that almost 90% of ATMs in the World were still running on a XP computer. Why? Because it just works.

  • @fmincer2
    @fmincer2 10 ปีที่แล้ว +28

    well, i realy like numberphile, but alot stuff said here is simply explained wrong. the problem is not in the hardware. the problem is that unix itself reads out the RTC (that runs with the 3V battery) and stores its information in a 32bit signed integer and uses this for all time/date informations. it has nothing todo with the hardware itself and changing to 64bit unix(most easy solution) is what makes the 64bit hardware nececary.

  • @DanOfAwsome
    @DanOfAwsome 9 ปีที่แล้ว +59

    Computer time: June 20th 2012
    Upload date: January 29 2013
    holy shit, you guys take for ever to upload. And I know it takes less then 7 months to edit an 8 minute video. but then again, you could be just running this channel part time. Either way, I should be thankful you're making this content in the first place.

    • @MataxaWhite
      @MataxaWhite 3 ปีที่แล้ว +2

      they waited for exactly January 29th

    • @michakrzyzanowski8554
      @michakrzyzanowski8554 3 ปีที่แล้ว +1

      when the channel dies, we still have year of videos

  • @GavarilloHDz
    @GavarilloHDz 8 ปีที่แล้ว +115

    I thought he was writing Pi

  • @hamstermo
    @hamstermo 5 ปีที่แล้ว +1

    For anyone who's wondering, the video was filmed on 20th June 2012 at 1pm (UTC)

  • @bbbl67
    @bbbl67 8 ปีที่แล้ว +40

    Now, say what you will about the limits of 32-bit numbers, but one question is why did they use signed 32-bit numbers in a counter that only goes up? That immediately reduced the range of dates by 1 bit. If they used unsigned 32-bit numbers, then that would've put off the impending doom date by another 70 years, to 6:28:16 am EST Sunday, February 7, 2106!

    • @JesseUnderscoreMartin
      @JesseUnderscoreMartin 8 ปีที่แล้ว +4

      Oh, ya know, time travel and all that... ;)

    • @FredrIQ
      @FredrIQ 7 ปีที่แล้ว +34

      Presumably because they wanted to have the ability to deal with dates before 1970.

    • @stensoft
      @stensoft 7 ปีที่แล้ว +13

      Becuase if you subtract 2016 from 2006 with unsigned numbers, you will get a date very far in the future instead of the correct -10 years, and back in the 1970s, they considered this easier computation to be much more important than going past 2038.

    • @bbbl67
      @bbbl67 7 ปีที่แล้ว +3

      You can still subtract unsigned numbers properly.

    • @stensoft
      @stensoft 7 ปีที่แล้ว +3

      bbbl67 You can but it's not as easy as with signed numbers

  • @RutiYT
    @RutiYT 8 ปีที่แล้ว +75

    You recorded the video on June 20 2012 :) You however uploaded it on January 29 2013... Hmmm.....

    • @DanDart
      @DanDart 8 ปีที่แล้ว +2

      The world has already been destroyed a tonne of times, but it's in a plural zone.. soooo :p

    • @nolle
      @nolle 7 ปีที่แล้ว +7

      nah they "published" it. If you edit even a small thing in your already uploaded video, it will display the date where you made that edit.

    • @HashimAziz1
      @HashimAziz1 7 ปีที่แล้ว

      Even if you edit metadata like the description?

    • @dylanpritchard4981
      @dylanpritchard4981 5 ปีที่แล้ว

      nolle Omg whoa... this is actually a huge change...

  • @memk
    @memk 3 ปีที่แล้ว +1

    It's 2021. We are one more year closer to the end of time.

  • @PrimusProductions
    @PrimusProductions 10 ปีที่แล้ว +40

    Will you do a video on whether 2001 should be the millennium or 2000 and problems with the Gregorian Calendar of not having a year zero?

  • @Shiri_Yam
    @Shiri_Yam 2 ปีที่แล้ว +3

    I probably won't live up to this, but I kinda want to go back to this video in 2038. I want to watch this video again in 2038 and compare it to what actually happens lol

  • @epicmarioplush2312
    @epicmarioplush2312 9 ปีที่แล้ว +60

    so my 64-bit windows 7 computer will be fine?

    • @isaackarjala7916
      @isaackarjala7916 9 ปีที่แล้ว +39

      Probably, but not because it had a 64 bit kernel, since the bitage of the kernel and the timestamp are unrelated.

    • @chsxtian
      @chsxtian 9 ปีที่แล้ว +6

      epicmario plush Windows doesn't use a unix timestamp in the first place, so you're fine.

    • @lemur2870
      @lemur2870 9 ปีที่แล้ว +14

      epicmario plush You'll probably have a new computer by then anyway. It's more than two decades away yet.

    • @Navhkrin
      @Navhkrin 9 ปีที่แล้ว +2

      epicmario plush No, the value is 32bit, even if your computer is 64bit.

    • @isaackarjala7916
      @isaackarjala7916 9 ปีที่แล้ว +11

      Michael Longhurst just like with y2k, the issue isn't end-user systems, it's servers.

  • @GregInHouston2
    @GregInHouston2 ปีที่แล้ว +1

    I thought about this problem back in the 90s when I was designing a software package. The problem was that my compiler didn't handle 64 bit integers. I also stored hourly data in a file. Each record had a timestamp. A 64 bit timestamp increased the file size considerably. At the time, we were using floppies and size mattered. I never settled on how I was going to handle it but decided that I stored a 32 bit date offset in the configuration section of the file. But the problem was that I didn't think that would work well in 2038 when that value would cross from 0 to 1. The lower 32 bits would be zero at the start of the data but would overflow during the middle of the collection period. Such things were considered too inconsequential at the time and I was terminated.

  • @dhy811
    @dhy811 11 ปีที่แล้ว +1

    I love his laugh at the end... Like a nervous way to deal with the morbidity of what he just said

  • @SirJavaGaming
    @SirJavaGaming 9 ปีที่แล้ว +10

    The video has been recorded on 20.06.2012 1:12pm (UTC). Why was it uploaded half a year later? :)

  • @xXx-un3ie
    @xXx-un3ie 8 ปีที่แล้ว +22

    4:10 Im sure he meant a min of 0 and a max of 255, not 256.
    He got the other signed margin right though

    • @dstarfire42
      @dstarfire42 5 ปีที่แล้ว +2

      Glad I'm not the only one who noticed that. The maximum value you can represent with any number of binary digits (assuming it's at least 1) is ALWAYS an odd number. Also, studying computer subnetting really drilled the binary maximums into my memory.

  • @sdmcelroy
    @sdmcelroy 9 ปีที่แล้ว +4

    You should do a video on Plan 9 from Bell Labs. It's a fascinating story and brings massive advantages by simplifying our interactions with computers.

  • @lambsum
    @lambsum 8 ปีที่แล้ว +1

    Fun story: A few weeks back I was playing on my iPod on a trip when it ran out of battery. When we got to the place I charged it but since it couldn't connect to wifi (we didn't have any at the place). It couldn't find out the time from that and so it just automatically went to 1970. I took some photos which I thought were disappearing and being deleted for some reason until I realised they had all gone to the top of my camera roll.

    • @lonestarr1490
      @lonestarr1490 2 ปีที่แล้ว +1

      You got lucky that you didn't got your password wrong three times, for it would have make you wait for 46 years until you could try again.

  • @Anti-proton
    @Anti-proton 9 ปีที่แล้ว +20

    Just change the data width, recompile the kernel, and keep trucking :P
    Of course, another idea is keeping your times in your software as offsets from a base-time. I usually use an unsigned long integer and just count milliseconds.

    • @davecrupel2817
      @davecrupel2817 6 ปีที่แล้ว

      antiprotons or use a 64bit number

    • @Extremq
      @Extremq 6 ปีที่แล้ว

      unsigned long long is a 64bit number

  • @JesseUnderscoreMartin
    @JesseUnderscoreMartin 8 ปีที่แล้ว +21

    Didn't something like this happen with that Korean dance video that went viral? Wasn't youtube storing the amount of views as a 32 bit int?

    • @tanan8116
      @tanan8116 8 ปีที่แล้ว +2

      Yes.

    • @BaxzXD
      @BaxzXD 7 ปีที่แล้ว

      yes

    • @saltyasian4462
      @saltyasian4462 7 ปีที่แล้ว +1

      It was confirmed as a joke by Google as the integer was always 64 bit.

    • @user-zz6fk8bc8u
      @user-zz6fk8bc8u 7 ปีที่แล้ว +2

      Z source?

    • @shehannanayakkara4162
      @shehannanayakkara4162 7 ปีที่แล้ว +3

      Z Nah what happened was that they changed it to 64-bit several months before when they saw Gangnam style approaching 2 bill views. So yes, the view counter 'breaking' was a joke but it wasnt always 64-bit.

  • @ZiMilkMan
    @ZiMilkMan 11 ปีที่แล้ว

    He said in the video "Most of you at home probably have either Windows or Mac, and they have a little counter buried in that system that's been ticking away every second, that's been ticking away since January 1st, 1970" he was referring to the Unix counter

  • @ArcherInRook
    @ArcherInRook 6 ปีที่แล้ว +1

    Just discovered 32 bits time will end on your exact birthday is amazing

  • @yatox8
    @yatox8 9 ปีที่แล้ว +3

    Well at least we have 23 Years to get our systems up to 64-bit computing. This is just a great show to tell that if you live in the past, you will fall. Times change, so should our perception of humanities future; Resistance is futile!... ALL HAIL HYPNOTOAD!!

  • @Wyzwon
    @Wyzwon 10 ปีที่แล้ว +8

    He's wrong about the heat death statement. Red dwarfs live for a trillion years. The universe wont be particularly active then but stars forming now will be here four times as long. luckily, they don't run on Unix time :P

    • @GameShowFan9001
      @GameShowFan9001 5 ปีที่แล้ว +1

      The heat death is supposedly going to happen in something like 10^120 (or so) years from now, way more than the 2 billion figure that was provided in the video

  • @thatguy_apu
    @thatguy_apu 7 ปีที่แล้ว +1

    Am i the only one who noticed that he was wrong about the 8-bit thing ? 8 bits can only be 255, a range of 2^0 to 2^7. 8 bits only don't allow 256, because that would be 2^8, which would require a ninth bit. The maximum single-bit number that you can display with 8 bits is 128, and the maximum total 8-bit number is 255.

  • @clausnymann5527
    @clausnymann5527 ปีที่แล้ว

    At the peak of my nerdom, I attended UNIX's 1 billion-second birthday, when it was celebrated in Copenhagen, Denmark. Thanks DKUUG, SSLUG and BSD-DK for that event! 🙂

  • @PianoVidz
    @PianoVidz 10 ปีที่แล้ว +18

    2,147,483,647 what is up with that number? it shows up everywhere when dealing with maximum numbers in computers???

    • @try6767youtubacc
      @try6767youtubacc 7 ปีที่แล้ว +12

      It equals ((2^32)/2)-1
      In other words, it's the top (positive) value of a 32-bit variable, which is comprised out of 32 binary bits.
      So the range of numbers that can be represented with it (as explained in the video for 8 bits), is either 0 to 4,294,967,296, or -2,147,483,648 to 2,147,483,647. In order for the time-calculation mechanism of computers to be able to handle past dates the latter option was chosen, so if you start from 1/1/1970 as your zero-time (aka the Unix Epoch) and count the time in seconds it equals around 68 years, in either direction.

    • @shobithchadagapandeshwar9764
      @shobithchadagapandeshwar9764 7 ปีที่แล้ว

      A 32-bit computer can represent 2^32= 4,294,967,296 numbers essentially from -2,147,483,648 to 2,147,483,647.

    • @MarkGamed
      @MarkGamed 7 ปีที่แล้ว +1

      (2^(32-1))-1

  • @ForkGenesis
    @ForkGenesis 2 ปีที่แล้ว +3

    ~16 years left, guys

  • @bleh1898
    @bleh1898 11 ปีที่แล้ว

    It's actually going to be 1901, since the integer in which the number is stored is signed (it holds a plus/minus sign). When the byte "Fills up" the only bit left to flip is the sign bit, turning the number into the negative. So 2147483647 turns into -2147483648.

  • @ludvighoelstad326
    @ludvighoelstad326 7 ปีที่แล้ว +1

    two seconds in and I love this guy allready

  • @wajideu5005
    @wajideu5005 9 ปีที่แล้ว +5

    I think it's kind of a dumb idea to make assumptions about integer sizes on a machine. For C, the best practice imo is to use a big number library like gmp. If the integer size is supported by the machine, you can override the functions with preprocessor macros that do the math normally. This way, there's no performance hit when the integer size is supported and you can easily increase the size of the integer whenever you need to. The only limit on numbers then is how much ram you have.

  • @Autoskip
    @Autoskip 10 ปีที่แล้ว +3

    You've got me curious, I've now set my iPod to as far ahead as possible - midnight 1st of January 2038.
    Now to wait 19 day, 3 hours and 14 minutes...

  • @thirdislandmile
    @thirdislandmile 10 ปีที่แล้ว

    Mmm, I could listen to (and watch) James explain this kind of stuff all night.

  • @BunnyRaptor
    @BunnyRaptor 8 ปีที่แล้ว +7

    You filmed this June 20th 2012? Wow, it really does take you a while to upload these videos. A lot of work, perhaps.

    • @audiblemagician6751
      @audiblemagician6751 8 ปีที่แล้ว +2

      +Чики Брики
      They probably thought they uploaded it and then on Jan. 29 they realized it never got uploaded and they uploaded it

    • @gunterchain
      @gunterchain 8 ปีที่แล้ว +1

      Shut up bandit

  • @peterpickaxe09
    @peterpickaxe09 11 ปีที่แล้ว +4

    Brady! I love your work and what you do, a few of your videos seem to be computer science based, just wondering have you ever thought of making videos on that subject? thanks!

  • @0zfer
    @0zfer 9 ปีที่แล้ว +44

    06/20/2012 @ 1:12pm (UTC)

    • @joemuis23
      @joemuis23 9 ปีที่แล้ว

      SirJavaGaming i did :P

    • @aislingoda6026
      @aislingoda6026 9 ปีที่แล้ว +4

      0zfer I was so confused when I saw this. Being an Australian, seeing the six first made me think "you're wrong, it's the twentieth of June!" I then realised that the twentieth isn't a month, and I figured out from there that you had the same result as me.

    • @EanaHufwe
      @EanaHufwe 7 ปีที่แล้ว +2

      That's why some people write it as 20 JUN 2012, like me. I do that all the time.

    • @HashimAziz1
      @HashimAziz1 7 ปีที่แล้ว +3

      Or just adopt the British (i.e. superior) system: DD/MM/YY.

    • @fluent_styles6720
      @fluent_styles6720 6 ปีที่แล้ว

      Hashim Aziz yeah

  • @ElPastalero
    @ElPastalero 4 ปีที่แล้ว

    Fun Fact: 2,147,483,647 is 2 off from being one half of a previously featured number on Numberphile - 4,294,967,296
    (2,147,483,647 x 2 is actually 4,294,967,294, not 4,294,967,296)

  • @rich1051414
    @rich1051414 11 ปีที่แล้ว

    My mother worked for Trades publishing, which published the Y2K magazine. None of us believed the hype, but it was her job. Well, the electric company had scheduled an electrical maintenance at 11:59pm friday, which happened to be 1 minute before new years. Talk about freaking out. It freaked so many out, it made the news and the electric company had to make a public apology.

  • @SuperFranzs
    @SuperFranzs 9 ปีที่แล้ว +19

    I'm just screaming in side me at the beginning: LINUX!

    • @ieattapes
      @ieattapes 9 ปีที่แล้ว

      NEEEEEERRRRRRRDDDD!!!

    • @SuperFranzs
      @SuperFranzs 8 ปีที่แล้ว

      ieattapes have you ever actually used ubuntu?

    • @nameguy101
      @nameguy101 8 ปีที่แล้ว +4

      +Kim André Moen Bjørkede (Super Franzs)
      Linux uses Unix time as well

    • @SuperFranzs
      @SuperFranzs 8 ปีที่แล้ว +2

      +Nameguy That's why I was screaming it at the beginning.

    • @Newbyte
      @Newbyte 6 ปีที่แล้ว

      Hardly any home users use Linux though, compared to Mac or especially Windows.

  • @fhtem7828
    @fhtem7828 10 ปีที่แล้ว +4

    Oh god the end of time itself is on my birth day!

  • @tomdonaldson698
    @tomdonaldson698 8 ปีที่แล้ว +1

    I didn't realise this was a numberphile video!

  • @conorreedR2C
    @conorreedR2C 11 ปีที่แล้ว

    I just realized that this video was uploaded on my birthday....... All the best.......

  • @macwas5900
    @macwas5900 9 ปีที่แล้ว +58

    "The end of Gangnam Style views" ammirite?

    • @saatvikjain3
      @saatvikjain3 8 ปีที่แล้ว +2

      it was based on the same thing.

    • @deleater
      @deleater 7 ปีที่แล้ว +6

      exactly, they stored view count variable as signed integer despite the fact that view count can not be a negative integer ever. A Noob's mistake.

    • @jakewhite9967
      @jakewhite9967 7 ปีที่แล้ว

      Mac Was always

    • @soyoltoi
      @soyoltoi 6 ปีที่แล้ว

      Sumit Singh Google programmers aren't noobs. They had a reason for that. I believe you can find it on their style guide.

    • @areebjamaliam
      @areebjamaliam 6 ปีที่แล้ว

      It was a joke

  • @SimLPs
    @SimLPs 9 ปีที่แล้ว +5

    Isn't that the really famous tetris player?

  • @user-uc9fm8bn9o
    @user-uc9fm8bn9o 10 ปีที่แล้ว +2

    They where recording this video on Wed, 20 Jun 2012 at 13:11:51 GMT

  • @tugno9639
    @tugno9639 4 ปีที่แล้ว

    We’re going back in time baby

  • @JonnyInfinite
    @JonnyInfinite 8 ปีที่แล้ว +67

    "Planes will fall from the sky, Nuclear reactors will meltdown..." remember all that millennium bug bollocks? Absolutely sod all happened.

    • @brianmiller1077
      @brianmiller1077 8 ปีที่แล้ว +24

      +JonnyInfinite because we put a lot of time into fixing that issue to keep it from happening.

    • @JonnyInfinite
      @JonnyInfinite 8 ปีที่แล้ว +1

      +Brian Miller yeah right. Pull the other one

    • @JonnyInfinite
      @JonnyInfinite 8 ปีที่แล้ว

      +Joshua Bruton where is your proof?

    • @JonnyInfinite
      @JonnyInfinite 8 ปีที่แล้ว

      +Nubbitude 'Jack' sounds like a right scam

    • @JonnyInfinite
      @JonnyInfinite 8 ปีที่แล้ว +1

      +Philip Rambaran I think it was used to crowbar money for something that wasn't much of a problem.

  • @br45entei
    @br45entei 9 ปีที่แล้ว +3

    I understand why we use the current time system, but I really don't see why we couldn't just make it so that the day, month, and year are saved independently as well as the normal 00:00:00 - 24:00:00 time value. One number to represent all of that seems a little silly to me really.

    • @nikolaibelinski593
      @nikolaibelinski593 7 ปีที่แล้ว

      cus if they are working together we can develop time travel and the computers will be the ones to send us there

  • @GoldTrousers
    @GoldTrousers 11 ปีที่แล้ว +1

    If the would have used an unsigned integer for the GP count like they should have, since they don't need to worry about negative values in item counts, the max 'stack' would be max unsigned 32-bit which is 4,294,967,295. Anyways, the maximum number of anything in any 32-bit game (Score, Money, XP, Position Co-ordinates, etc.) is one of those two max integers depending on the signage.

  • @lemmiix
    @lemmiix 3 ปีที่แล้ว +2

    2013: LOL 2038, it's such a long time no one cares
    2021: 17 years ain't that long... '-'

  • @LiborTinka
    @LiborTinka 9 ปีที่แล้ว +4

    Yep, that's why I store Unix time in LONG everywhere :-)

    • @zeddash
      @zeddash 9 ปีที่แล้ว +8

      You should store it as ulong, because you can.

    • @AB-om2qp
      @AB-om2qp 9 ปีที่แล้ว

      +FinnShack world war 1 and 2, Women getting the right to vote. That's only s few ;)

    • @nameguy101
      @nameguy101 8 ปีที่แล้ว

      +Andrex Plays
      what

    • @AB-om2qp
      @AB-om2qp 8 ปีที่แล้ว +1

      He said nothing important happened be4 1970

    • @AB-om2qp
      @AB-om2qp 8 ปีที่แล้ว

      ***** ohhh I feel like such an idiot now

  • @PikarinePlays
    @PikarinePlays 9 ปีที่แล้ว +9

    20th June 2012 eh?

  • @Estlib
    @Estlib 8 ปีที่แล้ว

    solution, once the number resets, what the value of the number currently shows on screen, is retained and the values adjusted. that way, the computer starts counting the numbers all over from the negative but onscreen the loss is only one second.

  • @rchaffer
    @rchaffer 9 หลายเดือนก่อน

    Happy new Unix Epoch!

  • @YnseSchaap
    @YnseSchaap 9 ปีที่แล้ว +11

    Wasn't there supposed to crash a comet onto earth in 2038 ?

    • @theq4602
      @theq4602 8 ปีที่แล้ว +3

      We have nukes. And rockets, and a extensive global program devoted to finding and tracking asteroids and comets that could hit the earth. As long as WWIII doesn't disrupt that program we should be fine.

    • @fmlAllthetime
      @fmlAllthetime 8 ปีที่แล้ว +2

      +David Vermillion Blowing up a massive asteroid would be one of the worst things you could do :I

    • @theq4602
      @theq4602 8 ปีที่แล้ว

      fmlAllthetime Other than hitting satellites what could it hurt?

    • @fmlAllthetime
      @fmlAllthetime 8 ปีที่แล้ว +2

      David Vermillion
      Really think about what you're saying for a second.

  • @cjomero5342
    @cjomero5342 8 ปีที่แล้ว +9

    2038 will be the end of all 32-bit things, like today's technology.

    • @LeBourineur
      @LeBourineur 8 ปีที่แล้ว +1

      +Cj Omero still working on 16bit technology

    • @maedafeelscoke5684
      @maedafeelscoke5684 8 ปีที่แล้ว +2

      the end of 32-bit is at Mon Jan 18 22:14:08 2038
      but i want 128-bit cpu before the year 292271025014 xD
      the year 292271025014 = the end of 64-bit

    • @boomerboxer3574
      @boomerboxer3574 8 ปีที่แล้ว +1

      Jowat Defuc 128 bit is probably 387498723847284782374874827987348728374827875847892798789579021772347832787179287348718975764817877897582747852784758287945975847857002786786927486758678275878476827578765878278768728776767364827658782475409672904068927876376455038453048-345e5978-396-54-539-4593-495-95e-045prod;fkvghhjcxbvbuvru34gv64

    • @iambalkan
      @iambalkan 8 ปีที่แล้ว

      +BoomerBoxerReal
      damn 🤖

    • @boomerboxer3574
      @boomerboxer3574 8 ปีที่แล้ว +1

      iambalkan i actually got a random piece of pi and just started mashing my keyboard

  • @Fightosaurus
    @Fightosaurus 8 ปีที่แล้ว

    The UNIX epoch time begins at 00:00 on January 1st, 1970. And if, by 2038, we are still using int32s in our circuitry to store time values, it would be very easy to just add in an "epoch cycle" counter to specify the number of epoch "roll overs".

    • @SirLugash
      @SirLugash 8 ปีที่แล้ว

      That would need to be supported by software though.

  • @eLJaybud
    @eLJaybud 8 ปีที่แล้ว

    I located and replaced millennium bug systems for both an Engineering firm who sorted the few systems that did not comply on 1997 and a university who fixed theirs with six months to go in 1999. There really weren't that many hardware systems that couldn't cope. The main one was a 486 board at the Engineering company used in the Robotic Welding controller. The trusty BBC model B used for a decades long testing programme happily ticked along and didn't care about the millennium at all.

  • @davidthomas4978
    @davidthomas4978 9 ปีที่แล้ว +3

    Could they not just set the counter back to -2 147 483 648 when each computer starts and set it to the current time? Surely the value of a counter can be set to a different starting point.

    • @TechnoMinarchist
      @TechnoMinarchist 9 ปีที่แล้ว

      +David Thomas Not without an IBM 5100 to debug the legacy programs for you.

    • @amigojapan
      @amigojapan 9 ปีที่แล้ว +1

      Jacen Solo Psy el Conrgoo!

  • @markdudley7575
    @markdudley7575 9 ปีที่แล้ว +35

    We'll have 128 bit computers or even higher by 2038

    • @romanivanovich6717
      @romanivanovich6717 7 ปีที่แล้ว +2

      nope

    • @Sqaaakoi
      @Sqaaakoi 7 ปีที่แล้ว

      Mark Dudley ...

    • @gooz1691
      @gooz1691 7 ปีที่แล้ว +7

      UNIX time with 64 bit will run out after the Sun inhales Earth so no point really

    • @ultru3525
      @ultru3525 7 ปีที่แล้ว +1

      +Pan kurczak
      You're already using numbers way bigger than 128 bit; when it comes to cryptography, the number of atoms in the universe won't cut it, RSA keys are up to 1154 orders of magnitude larger.

    • @gooz1691
      @gooz1691 7 ปีที่แล้ว +13

      Why do so many people get this wrong? 128bit is not twice as big as 64bit. 65bit is twice as big.

  • @AlarmClock65
    @AlarmClock65 11 ปีที่แล้ว

    I think you're right. I got 06/20/2012 too at approximately 1:12 UTC, which is 6:12 AM in UTC-7 and 6:12 PM in UTC+5.

  • @PanduPoluan
    @PanduPoluan 4 หลายเดือนก่อน

    "It's like watching your life just ticking away..."

  • @charlesisbozo
    @charlesisbozo 9 ปีที่แล้ว +5

    At least then people will finally move off XP...

  • @patsonical
    @patsonical 7 ปีที่แล้ว +5

    Guys, Unix Timestamp = 1.5 billion
    14-07-2017 at 02:40:00 (am)
    Mark your calendars!

  • @kikeonline
    @kikeonline 8 ปีที่แล้ว

    it was film on 06/20/2012 @ 1:12pm (UTC)

  • @user-uc9fm8bn9o
    @user-uc9fm8bn9o 10 ปีที่แล้ว

    You may wonder why 2,147,483,647 has shown up everywhere with computers. The reason for that is because it's related to 32 Bit. If you calculate 2^31, you'll get that number.

  • @samiraperi467
    @samiraperi467 8 ปีที่แล้ว +5

    "Time will "end" for 32-bit computers on 19 January, 2038."
    Yeah no. Only if they use 32-bit time_t. I have a 32-bit computer that runs out of time some time in the 22nd century, because AmigaOS uses a different epoch and IIRC an unsigned 32-bit int.

    • @tresbrown684
      @tresbrown684 2 ปีที่แล้ว

      What date does it run out at?

  • @chestersnapdragonmcphistic579
    @chestersnapdragonmcphistic579 10 ปีที่แล้ว +3

    Oh noes! Teh next Y2K! Lets all go buy bread and milk and hide in our shelters!

    • @TesterAnimal1
      @TesterAnimal1 3 ปีที่แล้ว

      You one of these denialist nutters?

  • @SteveChisnall
    @SteveChisnall 8 ปีที่แล้ว

    Making the jump from 32-bit to its successor will gain, the SixtyForce!

  • @bruceeinhorn8082
    @bruceeinhorn8082 11 ปีที่แล้ว

    Though you're correct about the Mac OS being a variant of UNIX, (NetBSD and FreeBSD) to be exact, you're wrong about the X. That does indeed stand for 10, in case you're not familiar with Roman numerals.

  • @tanan8116
    @tanan8116 8 ปีที่แล้ว +5

    I think in 2028 32-bit is going to be completly usless because of the exponential amount of RAM increasing in average home computers.

  • @its_noli6543
    @its_noli6543 8 ปีที่แล้ว +4

    Guys dont freak thats not the end of time it will end in 10 million years until the sun will centerpiece with earth and rip it into the suns inner peice and bam destroyed

    • @DanDart
      @DanDart 8 ปีที่แล้ว +1

      That's not the end of time either, just the Earth.. hopefully whatever becomes of humans will have escaped by then... also it's more like 10,000 million years

    • @demuriffic7152
      @demuriffic7152 8 ปีที่แล้ว

      Not only the Earth, but could be the whole solar system

    • @Fetidaf
      @Fetidaf 7 ปีที่แล้ว

      Kathie Dart I think it's even more than that 😂

    • @red_isopat
      @red_isopat 7 ปีที่แล้ว

      sun has nothing to do with time

    • @demuriffic7152
      @demuriffic7152 7 ปีที่แล้ว

      Gentel Noober Everything happens with time. PAST PRESENT FUTURE

  • @jazzpi
    @jazzpi 11 ปีที่แล้ว

    Depends on the lang you're talking about. For Java e.g. it's sizeof(int) = 32; sizeof(long) = 64.

  • @Christopher.E.Souter
    @Christopher.E.Souter 10 ปีที่แล้ว

    There is a tiny rechargeable battery inside inside the machine, which powers the CMOS clock, which is the part that does all the counting.
    That battery gets charged every time you run the computer, even when you're only running it on battery power.

  • @Andranadu
    @Andranadu 8 ปีที่แล้ว +4

    64 bit time would end in the year 1169108100477

    • @zoltanpataki1307
      @zoltanpataki1307 8 ปีที่แล้ว

      what about a 1024bit pc/phone??

    • @petaflopminecraftmore2338
      @petaflopminecraftmore2338 8 ปีที่แล้ว

      +zoltán ifj.pataki That would not be needed. We needn't ever create a 128-bit machine, let alone 1024 bit.

    • @eLJaybud
      @eLJaybud 8 ปีที่แล้ว

      Not needed unless some form of mathematics has a specific requirement.

  • @4345ghee
    @4345ghee 5 ปีที่แล้ว +3

    Convert.ToInt64(unixTime);
    I’ll be collecting my royalty checks now kthxbye

  • @DaveScottAggie
    @DaveScottAggie 8 ปีที่แล้ว

    It is interesting to learn how these situations come about.

  • @palmomki
    @palmomki 10 ปีที่แล้ว

    Aww, I hoped this video was going to talk about Relativity and around

  • @tristanbay
    @tristanbay 3 ปีที่แล้ว +1

    Wouldn't that 3:14:07 on 1/19/2038 be slightly off, though, do to any leap seconds we may add to the time? Or do we add a second to UNIX time as well?

  • @jack91x
    @jack91x 11 ปีที่แล้ว

    It's "unix-like". It is a direct evolution of Unix cia GNU, BSD, and MINIX. Whereas Unix is a copyrighted program, Linux is its open-source "clone" that was created so everyone would have access to similar tools.

  • @TigonIII
    @TigonIII 11 ปีที่แล้ว

    It's not going to be a problem for the regular consumer, but as he said, it is for the companies who use a machine for simple tasks that sits in a corner and just works.

  • @Mathhead2000
    @Mathhead2000 11 ปีที่แล้ว

    Actually, 1970 is 0 as a Unix Timestamp, but when it rolls over, it will be -2^31 not 0 (because it is a signed 32 bit integer.) So it will be about
    1970 - (2038 - 1970) = 1902

  • @pfever
    @pfever 9 ปีที่แล้ว +3

    so you filmed this on Wed, 20 Jun 2012 13:12:11 GMT? but uploaded until 29 Jan 2013? 0.o

  • @sammyspan649
    @sammyspan649 27 วันที่ผ่านมา

    Yes I can tell by the number you recorded this on June 20th 2012

  • @uditrawat2404
    @uditrawat2404 11 ปีที่แล้ว +1

    really loved the fact about computing ,what if we manually set the time to that point ?

  • @AJenbo
    @AJenbo 11 ปีที่แล้ว +1

    Windows actually doesn't use Unix time but a bunch of different mechanisms. It's file system (NTFS) uses 64bit from year 1601 divided by 100. But the counter for the running time can only count as much as 50th day since last boot. There are lots more of these issues to look out for if you are developing for Windows.