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

  • Home
  • SEARCH
  • 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 7721805
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T04:01:08+00:00 2026-06-01T04:01:08+00:00

I need to decode a data structure containing date and time. Most of the

  • 0

I need to decode a data structure containing date and time.

Most of the fields (month, minute, hour and so on) are single bytes and thus are no problem to extract.

However the year is formatted as two bytes, with the following description:

clock data, year[7:0] Time: Year (16bit, LSB) 
clock data, year[15:8] Time: Year (16bit, MSB

The two bytes I have extracted form the structure is as follows:

0xDB 0x07

And the year should be correct (the other fields are reasonable correct).

Anyone have an idea how it should be decoded?

  • 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-06-01T04:01:09+00:00Added an answer on June 1, 2026 at 4:01 am

    0xDB 0x07 -> “0x07DB” = 2011

    swap bytes and you have the year value.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to decode a packet sent using TIBCO-RV and pull fields out of
I need to decode session data to find out if a user currently has
I have some files that are uuencoded, and I need to decode them, using
I need to encode/decode UTF-16 byte arrays to and from java.lang.String . The byte
I need to extract and decode barcodes and text from images. Is there any
I'm trying to decide which data structure to use for the following. Lets say
I'd like to store the contents of a data structure, a few arrays, and
I have a huge data set. The structure looks something like this: K_Field1, K_Field2,
Is it possible to decode java objects in python? I know the structure of
I have a RuleTree data structure which represents a tree of rules that are

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.