Audacity 3.2.0
DateTimeConversions.h
Go to the documentation of this file.
1/*!********************************************************************
2
3 Audacity: A Digital Audio Editor
4
5 @file DateTimeConversions.h
6 @brief Declare functions to work with date and time string representations.
7
8 Dmitry Vedenko
9 **********************************************************************/
10
11#pragma once
12
13#include <chrono>
14#include <string>
15
16namespace audacity
17{
18
19using SystemTime = std::chrono::system_clock::time_point;
20
21STRING_UTILS_API bool ParseRFC822Date (const std::string& dateString, SystemTime* time);
22STRING_UTILS_API bool ParseISO8601Date (const std::string& dateString, SystemTime* time);
23
24STRING_UTILS_API std::string SerializeRFC822Date (SystemTime timePoint);
25
26}
bool ParseRFC822Date(const std::string &dateString, SystemTime *time)
bool ParseISO8601Date(const std::string &dateString, SystemTime *time)
std::string SerializeRFC822Date(SystemTime timePoint)
std::chrono::system_clock::time_point SystemTime