ROSE
0.9.6a
|
Renders a time_t as a string. More...
#include <SqlDatabase.h>
Public Member Functions | |
TimeRenderer () | |
TimeRenderer (const std::string &format, bool local_tz=true) | |
virtual std::string | operator() (const time_t &value, size_t width) const |
Renders a column value as a string. More... | |
Public Member Functions inherited from SqlDatabase::Renderer< time_t > | |
virtual | ~Renderer () |
Public Attributes | |
bool | local_tz |
Use local time zone rather than GMT. More... | |
std::string | format |
Format, as for strftime(). More... | |
Renders a time_t as a string.
Definition at line 544 of file SqlDatabase.h.
|
inline |
Definition at line 547 of file SqlDatabase.h.
|
inlineexplicit |
Definition at line 548 of file SqlDatabase.h.
|
virtual |
Renders a column value as a string.
The width
is zero when this functor is called while Table::print() is trying to determine the maximum width of a value.
Reimplemented from SqlDatabase::Renderer< time_t >.
bool SqlDatabase::TimeRenderer::local_tz |
Use local time zone rather than GMT.
Definition at line 545 of file SqlDatabase.h.
std::string SqlDatabase::TimeRenderer::format |
Format, as for strftime().
Definition at line 546 of file SqlDatabase.h.