Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3451256
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T09:07:37+00:00 2026-05-18T09:07:37+00:00

This question is sequel of this one. So any idea how to decode this

  • 0

This question is sequel of this one.

So any idea how to decode this number 5252235562500 into date and time 19.11.2010 15:43 ?
I have more pairs like this and I’m thinking about some script for comparing them to find some patern. Any advice what to check and how to search for patterns ?


EDIT: I added four pairs that I curentlly have.

  • 11.11.2010 16:23 > 5252425372575
  • 16.11.2010 15:30 > 5252922462564
  • 19.11.2010 15:39 > 5252231562511
  • 19.11.2010 15:43 > 5252235562500
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T09:07:37+00:00Added an answer on May 18, 2026 at 9:07 am

    I think I found the solution. Instead of simply presenting the decoding algorithm I’d like to show you the reasoning.

    The answer to the linked question showed that was a barcode in EAN-13 format.

    It means the codes have 12 digits and 1 check digit:

    11.11.2010 16:23 > 525242537257 5
    16.11.2010 15:30 > 525292246256 4
    19.11.2010 15:39 > 525223156251 1
    19.11.2010 15:43 > 525223556250 0
    

    The check digit can be calculated by

    • adding the values of the digits in the even-numbered positions: 2, 4, 6 … (2+2+2+3+2+7=18)
    • multiplying this result by 3 (18*3=54)
    • adding the values of the digits in the odd-numbered positions: 1, 3, 5… (5+5+4+5+7+5=31)
    • summing the two results (54+31=85)
    • calculating modulo 10 and subtracting it from 10 (5-10=5)

    I calculated the check digit for every code, it matched and confirmed the codes were in EAN-13 format.

    According to the specification, the first two or three digits of the code could be country codes, so I tried to separate these:

    11.11.2010 16:23 > 52 5242537257 5 | 525 242537257 5
    16.11.2010 15:30 > 52 5292246256 4 | 525 292246256 4
    19.11.2010 15:39 > 52 5223156251 1 | 525 223156251 1
    19.11.2010 15:43 > 52 5223556250 0 | 525 223556250 0
    

    The resulting numbers didn’t make any sense, because the earlier time had a greater number:
    5292246256 or 292246256
    than the later time:
    5223156251 or 223156251

    At this point I suspected the time wasn’t stored in binary format.
    I reorganized the digits and tried to find repeating patterns.
    I ended up with this layout:

    11.11.2010 16:23 > 52 52 42 53 72 57 5
    16.11.2010 15:30 > 52 52 92 24 62 56 4
    19.11.2010 15:39 > 52 52 23 15 62 51 1
    19.11.2010 15:43 > 52 52 23 55 62 50 0
    

    This is where things got interesting…

    Take a look at the 3rd and 4th row, these are the same except the 4th and 6th column.
    The 4th column has 15 and 55. Translate it backwards and you get 51 and 55.
    The difference of the two is 55 – 51 = 4 just like the difference of minutes 43 – 39 = 4
    Subtract the minutes from code values:
    55 – 43 = 12
    51 – 39 = 12

    It seems the 4th column encodes minutes by adding 12 and storing the digits backwards.

    Now try to apply this to the 5th column:

    11.11.2010 16:23 > 72 > 27
    16.11.2010 15:30 > 62 > 26
    19.11.2010 15:39 > 62 > 26
    19.11.2010 15:43 > 62 > 26
    

    26 – 15 = 11 and 27 – 16 = 11 so the difference for the 5th column is 11.

    From then it’s easy, the differences for the columns are 15, 14, 13, 12 & 11.
    A few quick calculations and you get the encoding scheme:

    Digits Meaning Diff.
     2-1    year    15
     4-3    month   14
     6-5    day     13
     8-7    minute  12
    10-9    hour    11
    

    Here’s a simple code snippet for decoding:

    union TimeFormat
    {
        unsigned short codearray[5];
        struct
        {
            unsigned short year;
            unsigned short month;
            unsigned short day;
            unsigned short minute;
            unsigned short hour;
        };
    };
    
    void DecodeBarcode(char *code, TimeFormat *time)
    {
        char buf[3]; // for atoi()
        buf[2] = 0;  // of course it has to be null-terminated
    
        for (int i = 0, diff = 15; i < 5; ++i, --diff)
        {
            buf[0] = code[i * 2 + 1];
            buf[1] = code[i * 2];
            time->codearray[i] = atoi(buf) - diff;
        }
        time->year += 2000;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a sequel to my (other) dumb question that I have asked today
This question was inspired by one I asked almost a year ago - any-orms-that-work-with-ms-access-for-prototyping
This question has been asked more than once before, but I have not found
This is the sequel to this question . I would like to combine three
(This question is over 6 years old and probably no longer has any relevance.)
This question was very helpful, however I have a list control in my report,
In a sequel question to this question , my corporate environment lacks the libpython2.6.so
This is a sequel to a related post which asked the eternal question: Can
This question is similar to this one: LINQ to SQL: GroupBy() and Max() to
This question is best described in code. I have a class called Vertex that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.