ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/HostStatus/HostStatus.hpp
(Generate patch)

Comparing HostStatus/HostStatus.hpp (file contents):
Revision 58 by Douglas Thrift, 2003-12-14T16:07:27-08:00 vs.
Revision 193 by Douglas Thrift, 2004-08-22T22:05:31-07:00

# Line 43 | Line 43 | inline int sputenv(const string& name)
43  
44   inline void sunsetenv(const string& name) { unsetenv(name.c_str()); }
45  
46 #ifdef __CYGWIN__
47
48 inline time_t timegm(struct tm* time)
49 {
50        string zone = sgetenv("TZ");
51
52        sputenv("TZ=");
53        tzset();
54
55        time_t when = mktime(time);
56
57        sputenv("TZ=" + zone);
58        tzset();
59
60        return when;
61 }
62
63 #endif
64
46   class HostStatus
47   {
48   private:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines