weird@sub.wetshaving.social to Programmer Humor@programming.devEnglish · 1 month agoUse protectionNSFWsub.wetshaving.socialimagemessage-square23linkfedilinkarrow-up1466arrow-down16
arrow-up1460arrow-down1imageUse protectionNSFWsub.wetshaving.socialweird@sub.wetshaving.social to Programmer Humor@programming.devEnglish · 1 month agomessage-square23linkfedilink
minus-squareweird@sub.wetshaving.socialOPlinkfedilinkEnglisharrow-up7·1 month agoWhat’s the first one then?
minus-squareblackbeans@lemmy.ziplinkfedilinkarrow-up8·1 month agoAs the epoch is signed, the first date might refer to December 1901, at least for a 32-bit number.
minus-squareSystemDisc@feddit.orglinkfedilinkEnglisharrow-up5·1 month agoIf it’s seconds past the Epoch, the integer 1 would be January 1st, 1970 12:00:01 AM
minus-squareranzispa@mander.xyzlinkfedilinkarrow-up1·1 month agoI 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.
minus-squareOddMinus1@sh.itjust.workslinkfedilinkarrow-up4·1 month agoIn java LinkedList, the method .get(0) is equivalent to .getFirst().
minus-squareSystemDisc@feddit.orglinkfedilinkEnglisharrow-up1·1 month agoThis 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.
That’s the zeroth date.
What’s the first one then?
As the epoch is signed, the first date might refer to December 1901, at least for a 32-bit number.
If it’s seconds past the Epoch, the integer 1 would be January 1st, 1970 12:00:01 AM
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.
deleted by creator
In java LinkedList, the method .get(0) is equivalent to .getFirst().
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.