Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

/home/pauldt/projects/IDEA/IDEA-ALL/IDEA-DEV/Core/Utilities/Includes/TimeParser.hh

Go to the documentation of this file.
00001 // -*- Mode: c++ -*-
00002 //     File: $Source: /home/cvs/ISG-Repository/IDEA-DEV/Core/Utilities/Includes/TimeParser.hh,v $
00003 //      Tag: $Name: DR_01_11_06 $
00004 //      CVS: $Id: TimeParser.hh,v 1.3 2005/11/08 18:32:46 rijsman Exp $
00005 //     Info: $CVSROOT/IDEA-DEV/COPYRIGHT
00006 
00007 #ifndef TIME_PARSER_H
00008 #define TIME_PARSER_H
00009 
00010 #include <cstdio>
00011 #include <sys/time.h>
00012 
00013 namespace IDEA 
00014 {
00023 #define CT_READ_DATE_FORMAT "%Y %b %d %H:%M:%S"
00024 
00028 #define CT_DATE_FORMAT "%Z " CT_READ_DATE_FORMAT
00029   
00033   typedef struct timeval ideaTimeVal;
00034 
00041   class TimeParser
00042   {
00043   public:
00047     TimeParser();
00051     ~TimeParser();
00055     void convertLocalToEpochTime(const char * s, ideaTimeVal * tv);
00059     void convertEpochTimeToLocal(ideaTimeVal * now, char * s, size_t s_size);
00060   private:
00064     int getTimeZoneOffsetToUTC(const char * tz);
00065   };
00066 
00067   /*
00068     }@
00069   */
00070 } //namespace
00071 
00072 #endif // TIME_PARSER_H
00073 
00074 //EOF

Contact information
© IDEA
Generated on Fri Feb 3 17:09:41 2006 for IDEA.