> Hello,
>
> What's the proper way to use Unix timestamps in dbixx queries?
Depending on how do you save it in the DB,
if you save it as a number, then just operate over time_t as numeric value.
If you save it as datatime then you should use std::tm - i.e. convert time_t to
std::tm
and then save it or load it from DB (see man localtime_r, mktime)
Artyom
|