ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/HostStatus/Host.cpp
Revision: 32
Committed: 2003-11-14T23:44:08-08:00 (21 years, 7 months ago) by Douglas Thrift
File size: 498 byte(s)
Log Message:
Everything's coming up roses.

File Contents

# User Rev Content
1 Douglas Thrift 31 // Host Update
2     //
3     // Douglas Thrift
4     //
5     // $Id$
6    
7     #include "Host.hpp"
8    
9     void Host::setSince(const string& since)
10     {
11 Douglas Thrift 32 struct tm when;
12    
13     strptime(since.c_str(), "%m/%d/%Y %H:%M:%S %Z", &when);
14    
15     time_t time = mktime(&when);
16    
17     localtime_r(&time, &when);
18    
19     char then[45];
20    
21     strftime(then, 45, "%A %B %e, %Y %l:%M:%S %p %Z", &when);
22    
23     this->since = then;
24 Douglas Thrift 31 }
25    
26     ostream& operator<<(ostream& output, Host& host)
27     {
28     //
29    
30     return output;
31     }
32    
33     istream& operator>>(istream& input, Host& host)
34     {
35     //
36    
37     return input;
38     }

Properties

Name Value
svn:eol-style native
svn:keywords Id