WMI Library
Namespaces | Functions
DateTime.cpp File Reference

Helper functions for parsing WMI datetime values. More...

#include "Common.hpp"
#include "DateTime.hpp"
#include <Core/StringUtils.hpp>
#include <Core/ParseException.hpp>

Namespaces

namespace  WMI
 

The Windows Management Instrumentation namespace.


Functions

bool WMI::tryParseDateTime (const tstring &value, CDateTime &datetime, tstring &offset)
 Try and convert a string into a datetime.
CDateTime WMI::parseDateTime (const tstring &value)
 Convert a string into a datetime or throw an exception if the format is invalid.

Detailed Description

Helper functions for parsing WMI datetime values.

Author:
Chris Oldwood