OWBI1_DateTime.cpp File Reference

#include "OWBI1_config.h"
#include "OWBI1_DateTime.hpp"
#include "OWBI1_String.hpp"
#include "OWBI1_Array.hpp"
#include "OW_BinarySerialization.hpp"
#include "OW_Format.hpp"
#include "OW_Mutex.hpp"
#include "OW_MutexLock.hpp"
#include "OW_ExceptionIds.hpp"
#include <iostream>
#include <time.h>
#include <cctype>

Include dependency graph for OWBI1_DateTime.cpp:

Go to the source code of this file.

Namespaces

namespace  OWBI1

Functions

tm * localtime_r (const time_t *timep, struct tm *result)
tm * gmtime_r (const time_t *timep, struct tm *result)
void OWBI1::badDateTime (const String &str)
void OWBI1::validateRanges (Int32 year, Int32 month, Int32 day, Int32 hour, Int32 minute, Int32 second, Int32 microseconds, const String &str)
bool OWBI1::isDOWValid (const char *str)
bool OWBI1::isLongDOWValid (const String &s)
int OWBI1::decodeShortMonth (const char *str)
int OWBI1::decodeLongMonth (const String &str)
bool OWBI1::getTimeZoneOffset (const String &timezone, int &offset)
Int32 OWBI1::getDaysPerMonth (Int32 year, Int32 month)
void OWBI1::adjustTimeForTimeZone (Int32 timezone_offset, Int32 &year, Int32 &month, Int32 &day, Int32 &hour)
void OWBI1::addSeconds (long seconds)
void OWBI1::addMinutes (long minutes)
 Add minutes to the date represented by this object.
void OWBI1::addHours (long hours)
 Add hours to the date represented by this object.
bool OWBI1::operator< (const DateTime &tm) const
 Less than operator.
bool OWBI1::operator> (const DateTime &tm) const
 Greater than operator.
bool OWBI1::operator== (const DateTime &tm) const
 Equality operator.
Int16 OWBI1::toLocal (struct tm &tt) const

Variables

OWBI1::Mutex localtimeMutex
OWBI1::Mutex gmtimeMutex
const int OWBI1::LOCAL_TIME_OFFSET = -24


Function Documentation

struct tm* gmtime_r const time_t *  timep,
struct tm *  result
 

Definition at line 85 of file OWBI1_DateTime.cpp.

References gmtimeMutex, and result.

Referenced by OWBI1::DateTime::getTm(), OW_NAMESPACE::DateTime::getTm(), OWBI1::DateTime::localTimeAndOffset(), and OW_NAMESPACE::DateTime::localTimeAndOffset().

struct tm* localtime_r const time_t *  timep,
struct tm *  result
 

Definition at line 66 of file OWBI1_DateTime.cpp.

References localtimeMutex.

Referenced by OWBI1::DateTime::getTm(), OW_NAMESPACE::DateTime::getTm(), OWBI1::DateTime::localTimeAndOffset(), and OW_NAMESPACE::DateTime::localTimeAndOffset().


Variable Documentation

OWBI1::Mutex gmtimeMutex [static]
 

Definition at line 83 of file OWBI1_DateTime.cpp.

Referenced by gmtime_r().

OWBI1::Mutex localtimeMutex [static]
 

Definition at line 64 of file OWBI1_DateTime.cpp.

Referenced by localtime_r().


Generated on Thu Feb 9 09:09:49 2006 for openwbem by  doxygen 1.4.6