I have two byte[] (like this { 0, 0, 0, 0, 52, 246, 141, 6 }) that represent two Oracle’s timestamps.
How do I know which one is older?
I have two byte[] (like this { 0, 0, 0, 0, 52, 246, 141,
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Convert the binary timestamp to
Int64and then compare the correspondinglongvalues:The bigger the
longvalue, the more recent the timestamp. I haven’t used Oracle but I would guess this represents the number of ticks since the Epoch.