13#include <wx/datetime.h>
23 wxString::const_iterator
end;
25 if (!dt.ParseRfc822Date (dateString, &
end))
29 *time = std::chrono::system_clock::from_time_t (dt.GetTicks ());
37 time_t (std::chrono::duration_cast<std::chrono::seconds> (
38 timePoint.time_since_epoch ()
41 return ToUTF8 (dt.Format(
"%a, %d %b %Y %H:%M:%S %z"));
Declare functions to perform UTF-8 to std::wstring conversions.
Declare functions to work with date and time string representations.
auto end(const Ptr< Type, BaseDeleter > &p)
Enables range-for.
std::string ToUTF8(const std::wstring &wstr)
bool ParseRFC822Date(const std::string &dateString, SystemTime *time)
std::string SerializeRFC822Date(SystemTime timePoint)
std::chrono::system_clock::time_point SystemTime