// libphitech.cpp : Defines the functions for the static library.
//

#include "pch.h"
#include "framework.h"
#include "helpers.h"

#include <sstream>
#include <vector>

namespace phitech
{
namespace helpers
{

	std::vector<int> string_to_datetime_vector(const std::string& datetime_string)
	{
		std::vector<int> res;
		std::stringstream ss(datetime_string);

		int component;
		char delimiter;
		while (ss >> component)
		{
			res.push_back(component);
			ss >> delimiter;
		}
		return res;
	}

} // namespace helpers
} // namespace phitech
