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

IDEA::TimeParser Class Reference
[Utilities]

Used to convert human readable local time to Epoch time and vice versa. More...

#include <TimeParser.hh>

List of all members.

Public Methods

 TimeParser ()
 Constructor.

 ~TimeParser ()
 Destructor.

void convertLocalToEpochTime (const char *s, ideaTimeVal *tv)
 Convert from Local human readable time to Epoch time.

void convertEpochTimeToLocal (ideaTimeVal *now, char *s, size_t s_size)
 Convert from Epoch time to Local human readable time.


Private Methods

int getTimeZoneOffsetToUTC (const char *tz)
 Computed the timezone offset given the three letter zone code (eg., PST, PDT, EST, EDT etc).


Detailed Description

Used to convert human readable local time to Epoch time and vice versa.

class TimeParser


Constructor & Destructor Documentation

IDEA::TimeParser::TimeParser  
 

Constructor.

IDEA::TimeParser::~TimeParser  
 

Destructor.


Member Function Documentation

void IDEA::TimeParser::convertEpochTimeToLocal ideaTimeVal   now,
char *    s,
size_t    s_size
 

Convert from Epoch time to Local human readable time.

void IDEA::TimeParser::convertLocalToEpochTime const char *    s,
ideaTimeVal   tv
 

Convert from Local human readable time to Epoch time.

int IDEA::TimeParser::getTimeZoneOffsetToUTC const char *    tz [private]
 

Computed the timezone offset given the three letter zone code (eg., PST, PDT, EST, EDT etc).


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