Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

facilities::Timestamp::TZOffset Class Reference

List of all members.

Public Member Functions

 TZOffset ()
 TZOffset ()

Public Attributes

int m_isDst
long int m_tzseconds

Detailed Description

Representation of nominal start of time -- Jan 1, 1970 -- will change between Visual Studio V6 and V7. Time zone also has to be discovered dynamically, but only once. Do the computation in the constructor of a private class.


Constructor & Destructor Documentation

facilities::Timestamp::TZOffset::TZOffset  ) 
 

00207                               {
00208     struct tm fields;
00209 
00210     // Set it up for Jan 1, 1970 at 12:00
00211     fields.tm_year = 70;
00212     fields.tm_mon = 0;
00213     fields.tm_mday = 1;
00214     fields.tm_hour = 12;
00215     fields.tm_min = 0;
00216     fields.tm_sec = 0;
00217     fields.tm_isdst = 0;
00218 
00219     m_tzseconds = mktime(&fields) - 12*60*60;
00220     m_isDst = fields.tm_isdst;
00221   }

facilities::Timestamp::TZOffset::TZOffset  ) 
 


Member Data Documentation

int facilities::Timestamp::TZOffset::m_isDst
 

long int facilities::Timestamp::TZOffset::m_tzseconds
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 19:21:13 2011 for BOSS6.5.5 by  doxygen 1.3.9.1