Audacity
3.2.0
libraries
lib-string-utils
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
16
namespace
audacity
17
{
18
19
using
SystemTime
= std::chrono::system_clock::time_point;
20
21
STRING_UTILS_API
bool
ParseRFC822Date
(
const
std::string& dateString,
SystemTime
* time);
22
STRING_UTILS_API
bool
ParseISO8601Date
(
const
std::string& dateString,
SystemTime
* time);
23
24
STRING_UTILS_API std::string
SerializeRFC822Date
(
SystemTime
timePoint);
25
26
}
audacity
Definition:
FileHistory.h:23
audacity::ParseRFC822Date
bool ParseRFC822Date(const std::string &dateString, SystemTime *time)
Definition:
DateTimeConversions.cpp:20
audacity::ParseISO8601Date
bool ParseISO8601Date(const std::string &dateString, SystemTime *time)
Definition:
DateTimeConversions.cpp:34
audacity::SerializeRFC822Date
std::string SerializeRFC822Date(SystemTime timePoint)
Definition:
DateTimeConversions.cpp:50
audacity::SystemTime
std::chrono::system_clock::time_point SystemTime
Definition:
DateTimeConversions.h:19
Generated by
1.9.3