▲ 463 ▼ Use protection (sub.wetshaving.social) submitted 3 weeks ago by weird@sub.wetshaving.social to c/programmer_humor@programming.dev NSFW 23 comments fedilink hide all child comments
[–] anton@lemmy.blahaj.zone 31 points 3 weeks ago (2 children) That's the zeroth date. permalink fedilink source hideshow 4 child comments replies: [–] weird@sub.wetshaving.social [S] 7 points 3 weeks ago (3 children) What's the first one then? permalink fedilink source parent hideshow 6 child comments replies: [–] blackbeans@lemmy.zip 8 points 3 weeks ago As the epoch is signed, the first date might refer to December 1901, at least for a 32-bit number. permalink fedilink source parent [–] SystemDisc@feddit.org 5 points 3 weeks ago (1 child) If it’s seconds past the Epoch, the integer 1 would be January 1st, 1970 12:00:01 AM permalink fedilink source parent hideshow 2 child comments replies: [–] ranzispa@mander.xyz 1 point 1 week ago I guess which it should be date 1. With the date expressed in milliseconds that'd make it 999 milliseconds earlier than what you wrote. 12:00:01 would be the time at which the guy finally came. permalink fedilink source parent [+] kubica@fedia.io 1 point 3 weeks ago [deleted] permalink fedilink source parent [–] OddMinus1@sh.itjust.works 4 points 3 weeks ago (1 child) In java LinkedList, the method .get(0) is equivalent to .getFirst(). permalink fedilink source parent hideshow 2 child comments replies: [–] SystemDisc@feddit.org 1 point 1 week ago This is a good point. Even in a zero-based index, the first element is the first element. So, the first date is still a zero timestamp. permalink fedilink source parent
[–] weird@sub.wetshaving.social [S] 7 points 3 weeks ago (3 children) What's the first one then? permalink fedilink source parent hideshow 6 child comments replies: [–] blackbeans@lemmy.zip 8 points 3 weeks ago As the epoch is signed, the first date might refer to December 1901, at least for a 32-bit number. permalink fedilink source parent [–] SystemDisc@feddit.org 5 points 3 weeks ago (1 child) If it’s seconds past the Epoch, the integer 1 would be January 1st, 1970 12:00:01 AM permalink fedilink source parent hideshow 2 child comments replies: [–] ranzispa@mander.xyz 1 point 1 week ago I guess which it should be date 1. With the date expressed in milliseconds that'd make it 999 milliseconds earlier than what you wrote. 12:00:01 would be the time at which the guy finally came. permalink fedilink source parent [+] kubica@fedia.io 1 point 3 weeks ago [deleted] permalink fedilink source parent
[–] blackbeans@lemmy.zip 8 points 3 weeks ago As the epoch is signed, the first date might refer to December 1901, at least for a 32-bit number. permalink fedilink source parent
[–] SystemDisc@feddit.org 5 points 3 weeks ago (1 child) If it’s seconds past the Epoch, the integer 1 would be January 1st, 1970 12:00:01 AM permalink fedilink source parent hideshow 2 child comments replies: [–] ranzispa@mander.xyz 1 point 1 week ago I guess which it should be date 1. With the date expressed in milliseconds that'd make it 999 milliseconds earlier than what you wrote. 12:00:01 would be the time at which the guy finally came. permalink fedilink source parent
[–] ranzispa@mander.xyz 1 point 1 week ago I guess which it should be date 1. With the date expressed in milliseconds that'd make it 999 milliseconds earlier than what you wrote. 12:00:01 would be the time at which the guy finally came. permalink fedilink source parent
[–] OddMinus1@sh.itjust.works 4 points 3 weeks ago (1 child) In java LinkedList, the method .get(0) is equivalent to .getFirst(). permalink fedilink source parent hideshow 2 child comments replies: [–] SystemDisc@feddit.org 1 point 1 week ago This is a good point. Even in a zero-based index, the first element is the first element. So, the first date is still a zero timestamp. permalink fedilink source parent
[–] SystemDisc@feddit.org 1 point 1 week ago This is a good point. Even in a zero-based index, the first element is the first element. So, the first date is still a zero timestamp. permalink fedilink source parent