17static const unsigned int ISO8601SIZE = 32;
30 struct tm *mytm = localtime(&t);
32 char mytime[ISO8601SIZE];
33 unsigned int size = strftime(mytime,
sizeof(mytime),
"%Y-%m-%d %H:%M:%S %z", mytm);
34 if (size >=
sizeof(mytime) || size == 0)
37 if (session.
hasEnv(
"VERBOSE_GREETING")) {
42 <<
" by Andreas Aardal Hanssen & Erwin Hoffmann at "
45 bincClient <<
"* OK Welcome to Binc IMAP at " << mytime << endl;
static Session & getInstance(void)
bool hasEnv(const std::string &key) const
Declaration of the IODevice class.
Declaration of the IOFactory class.