End of Time (Unix) - Numberphile

Поділитися
Вставка
  • Опубліковано 28 січ 2013
  • 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.coolepochcountdown.com/
    NUMBERPHILE
    Website: www.numberphile.com/
    Numberphile on Facebook: / numberphile
    Numberphile tweets: / numberphile
    Subscribe: bit.ly/Numberphile_Sub
    Videos by Brady Haran
    Patreon: / numberphile
    Brady's videos subreddit: / bradyharan
    Brady's latest videos across all channels: www.bradyharanblog.com/
    Sign up for (occasional) emails: eepurl.com/YdjL9
    Numberphile T-Shirts: teespring.com/stores/numberphile
    Other merchandise: store.dftba.com/collections/n...
  • Наука та технологія

КОМЕНТАРІ • 2,9 тис.

  • @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 :)

  • @matthewrease2376
    @matthewrease2376 3 роки тому +202

    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).

  • @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)

  • @jamesthurlow466
    @jamesthurlow466 8 років тому +118

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

    • @hieriseli1
      @hieriseli1 8 років тому

      Omg

    • @scathiebaby
      @scathiebaby 8 років тому

      WTF iz Runescape

    • @hieriseli1
      @hieriseli1 8 років тому +3

      scathiebaby what?!? A game.

    • @static_motion
      @static_motion 6 років тому +8

      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?

  • @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 8 років тому +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!

  • @clickrick
    @clickrick Рік тому +3

    "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 Місяць тому

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

  • @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

  • @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.

  • @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?

    • @thomaslynn233
      @thomaslynn233 8 років тому +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.

  • @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 5 місяців тому

      Upto 256 means 0 to 255

  • @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.

  • @GavarilloHDz
    @GavarilloHDz 8 років тому +115

    I thought he was writing Pi

  • @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.

  • @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 7 років тому +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

  • @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.

  • @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.

  • @SirJavaGaming
    @SirJavaGaming 9 років тому +10

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

  • @hamstermo
    @hamstermo 5 років тому +1

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

  • @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.

  • @PrimusProductions
    @PrimusProductions 9 років тому +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?

  • @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 6 років тому

      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.

  • @dhy811
    @dhy811 10 років тому +1

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

  • @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

  • @xXx-un3ie
    @xXx-un3ie 7 років тому +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.

  • @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.

  • @thirdislandmile
    @thirdislandmile 10 років тому

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

  • @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!

  • @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

  • @ludvighoelstad326
    @ludvighoelstad326 7 років тому +1

    two seconds in and I love this guy allready

  • @lambsum
    @lambsum 7 років тому +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.

  • @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 6 років тому +3

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

    • @fluent_styles6720
      @fluent_styles6720 6 років тому

      Hashim Aziz yeah

  • @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

  • @ArcherInRook
    @ArcherInRook 6 років тому +1

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

  • @clausnymann5527
    @clausnymann5527 11 місяців тому

    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! 🙂

  • @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!!

  • @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...

  • @user-uc9fm8bn9o
    @user-uc9fm8bn9o 10 років тому +2

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

  • @tomdonaldson698
    @tomdonaldson698 8 років тому +1

    I didn't realise this was a numberphile video!

  • @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.

  • @JesseUnderscoreMartin
    @JesseUnderscoreMartin 7 років тому +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 7 років тому +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.

  • @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.

  • @conorreedR2C
    @conorreedR2C 11 років тому

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

  • @SuperFranzs
    @SuperFranzs 9 років тому +19

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

    • @ieattapes
      @ieattapes 8 років тому

      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.

  • @PikarinePlays
    @PikarinePlays 9 років тому +9

    20th June 2012 eh?

  • @daedra40
    @daedra40 11 років тому

    James makes any video an instant favourite :P

  • @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.

  • @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

  • @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

  • @uditrawat2404
    @uditrawat2404 11 років тому +1

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

  • @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

  • @fhtem7828
    @fhtem7828 10 років тому +4

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

  • @SimLPs
    @SimLPs 9 років тому +5

    Isn't that the really famous tetris player?

  • @geoffrey3668
    @geoffrey3668 8 років тому

    Great video! I did know about that and it is very cool!

  • @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.

  • @ForkGenesis
    @ForkGenesis 2 роки тому +3

    ~16 years left, guys

  • @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

  • @DaveScottAggie
    @DaveScottAggie 8 років тому

    It is interesting to learn how these situations come about.

  • @PanicProvisions
    @PanicProvisions 11 років тому

    I was looking exactly for this.

  • @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 6 років тому

      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

  • @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.

  • @alexanderiatinker7501
    @alexanderiatinker7501 9 років тому

    If this is the way that computers keep track of time, how would that effect the rest of the computer? If the time on the computer just stops counting then wouldn't the rest of the systems still work? Or are they all connected some how? How would it "overflow" on time? I'm thinking about this like a battery operated clock basically, once the batteries die, the clock just stops ticking.

  • @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.

  • @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.

  • @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.

  • @rchaffer
    @rchaffer 8 місяців тому

    Happy new Unix Epoch!

  • @charlesisbozo
    @charlesisbozo 9 років тому +5

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

  • @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

  • @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)

  • @kikeonline
    @kikeonline 8 років тому

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

  • @patsonical
    @patsonical 7 років тому +5

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

  • @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.

  • @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.

  • @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?

  • @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.

  • @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?

  • @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.

  • @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.

  • @tanan8116
    @tanan8116 7 років тому +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 7 років тому

      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

  • @Eeroke
    @Eeroke 10 років тому

    I think when he took the negative numbers into discussion he failed to mention (or it was cut out) that a quick fix, even to an existing system with no access to source code, is to change the read and addition operations to the counter to work with unsigned numbers, which gives us extra two billion seconds to migrate systems.
    There has actually been a few cases cases of Unix time overrun, related to long mortgage calculations, if I recall correctly.

  • @debug_duck
    @debug_duck 11 років тому

    At this date I will watch the news in the morning (which I normally don't do and don't plan to do regulary) just to see how much trouble there is :)

  • @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

  • @QayLikeKay
    @QayLikeKay 11 років тому

    When you upgrade to a 64 bit processor you have to upgrade the software (i.e. the operating system) in order to take advantage of it. On everything except windows this changes c/c++ integer types from 4 bytes to 8 bytes, effectively increasing the range of the unix time counter being as it is defined as a signed integer. This is what they are talking about, upgrading the entire system to 64 bit, not just the cpu.

  • @AndrewSmithDev
    @AndrewSmithDev 10 років тому

    How does it know when to tick?
    Does it know the clock speed of the cpu and say okay after X clock cycles increment the type? Does it have a some sort of processor that ticks at 1hz and increment the time then? Or is it something entirely different?

  • @listen2meokidoki264
    @listen2meokidoki264 2 роки тому +1

    WHEW!
    I was genuinely worried for a second.

  • @MatthiasVanGestel
    @MatthiasVanGestel 11 років тому

    it's about 32 bit computers. And I think it is unix bound. Also in 32 bit systems you can fix this by using another 32 bit register (2 in total) to count the time effectively increasing the possible time.

  • @tugno9639
    @tugno9639 4 роки тому

    We’re going back in time baby

  • @Maldito011316
    @Maldito011316 9 років тому

    I KNEW IT!
    I've seen this guy in videos about Tetris! :D

  • @jazzpi
    @jazzpi 11 років тому

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

  • @Ornatelime
    @Ornatelime 7 років тому

    The problem w/ the unix time stamp is that that will be really hard to explain to people why that is a problem. The 99->00 thing was a very understandable problem. This is a lot more behind the scenes.

  • @user-cz7bu5qk8w
    @user-cz7bu5qk8w 11 років тому

    epochconverter . com lets you find the time corresponding to any Unix time stamp.
    According to the site, the time at the 7:52 mark of this video was Wed, 20 Jun 2012 13:12:12 Greenwich Mean Time.

  • @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.