// Host Update // // Douglas Thrift // // $Id$ #include "Host.hpp" void Host::setSince(const string& since) { struct tm when; strptime(since.c_str(), "%m/%d/%Y %H:%M:%S %Z", &when); time_t time = mktime(&when); localtime_r(&time, &when); char then[45]; strftime(then, 45, "%A %B %e, %Y %l:%M:%S %p %Z", &when); this->since = then; } ostream& operator<<(ostream& output, Host& host) { // return output; } istream& operator>>(istream& input, Host& host) { // return input; }