OGS
DateTools.h
Go to the documentation of this file.
1
15#pragma once
16
17#include <chrono>
18#include <string>
19
20namespace BaseLib
21{
26int date2int(int y, int m, int d);
27
32std::string int2date(int date);
33
40std::string date2string(double ddate);
41
48int strDate2int(const std::string& s);
49
57int xmlDate2int(const std::string& s);
58
65std::string formatDate(
66 std::chrono::time_point<std::chrono::system_clock> const& time);
67
68} // namespace BaseLib
std::string date2string(double ddate)
Definition DateTools.cpp:65
int strDate2int(const std::string &s)
std::string formatDate(std::chrono::time_point< std::chrono::system_clock > const &time)
int date2int(int y, int m, int d)
Definition DateTools.cpp:26
std::string int2date(int date)
Definition DateTools.cpp:42
int xmlDate2int(const std::string &s)