MySQL Forums
Forum List  »  Connector/C++

Re: Connector c++ 8 converting field Value for DATE to time_t
Posted by: Claude Mally
Date: August 22, 2021 11:41AM

I am sorry, but the field type is DATE the raw representation is 4 bytes wide, the supplied link says DATE is 3 bytes little endian.

The whole doc for DATE is just this:

DATE: A three-byte integer packed as YYYY×16×32 + MM×32 + DD

The supplied link does not help me getting a time_t from a date field

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Connector c++ 8 converting field Value for DATE to time_t
205
August 22, 2021 11:41AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.