Holger Hetterich
2011-04-25 21:47:32 UTC
Hi,
In postgresql I store data of type "timestamp" such as:
"2011-04-17 12:58:51.074"
While the database can handle this format, and for example correctly
sorts while taking care of the milliseconds, it looks to me it's
impossible to retrieve this data via libDBI. What I found was the
get_datetime functions, which return a time_t. Any way to get the
information about the milliseconds, _or_ get a string or binary
representation of what is stored in the DB, so that I can convert it
back to a string on the client side?
Or maybe I oversee a useful function to get to this information...
Holger
In postgresql I store data of type "timestamp" such as:
"2011-04-17 12:58:51.074"
While the database can handle this format, and for example correctly
sorts while taking care of the milliseconds, it looks to me it's
impossible to retrieve this data via libDBI. What I found was the
get_datetime functions, which return a time_t. Any way to get the
information about the milliseconds, _or_ get a string or binary
representation of what is stored in the DB, so that I can convert it
back to a string on the client side?
Or maybe I oversee a useful function to get to this information...
Holger