You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
472 B
C
28 lines
472 B
C
9 years ago
|
//
|
||
|
// Created by marcin on 22/11/15.
|
||
|
//
|
||
|
|
||
|
#ifndef XMR2CSV_DATEPARSER_H
|
||
|
#define XMR2CSV_DATEPARSER_H
|
||
|
|
||
|
#include <iostream>
|
||
|
#include <boost/date_time/local_time/local_time.hpp>
|
||
|
|
||
|
|
||
|
// taken from: http://stackoverflow.com/a/19482908/248823
|
||
|
struct dateparser
|
||
|
{
|
||
|
boost::posix_time::ptime pt;
|
||
|
unsigned year, month, day;
|
||
|
|
||
|
dateparser(std::string fmt);
|
||
|
|
||
|
bool
|
||
|
operator()(std::string const& text);
|
||
|
|
||
|
private:
|
||
|
std::stringstream ss;
|
||
|
};
|
||
|
|
||
|
#endif //XMR2CSV_DATEPARSER_H
|