summaryrefslogtreecommitdiffstats
blob: 309ee56d32d66ece8a83c1d106076db7165bab4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * Copyright (c) 2011 Remko Tronçon
 * Licensed under the GNU General Public License v3.
 * See Documentation/Licenses/GPLv3.txt for more information.
 */

#pragma once

#include <boost/date_time/posix_time/ptime.hpp>

namespace Swift {
	/**
	 * Converts a date formatted according to XEP-0082 into a time
	 * object.
	 */
	boost::posix_time::ptime stringToDateTime(const std::string& string);
}