简体   繁体   中英

Convert MySQL BigInt to date in C/C++

Do anyone knows how to convert MySQL BigInt to date in C++. I can easily convert a BitInt value to Date and back for storage without issue in java, which means I can use long primitive to control the bigint in my application.

Is it possible to do the same with C++?

If this "bigint" of yours contains a time_t value, MySQL++ 's DateTime class contains conversions for that.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM