⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
userver
C++ Async Framework v2.0
Documentation
API Groups
Namespaces
Reference
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
w
y
Variables
k
n
r
u
w
Typedefs
c
d
h
m
n
o
p
s
t
u
v
Enumerations
a
b
c
d
f
h
i
l
o
p
r
s
t
u
v
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
~
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
y
~
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
Enumerations
Enumerator
Related Symbols
File List
File Members
All
e
i
l
r
t
u
Functions
Macros
e
i
l
r
t
u
Examples
Toggle main menu visibility
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Concepts
Loading...
Searching...
No Matches
All results
from_string_saturating.hpp
Go to the documentation of this file.
1
#
pragma
once
2
3
/// @file userver/utils/datetime/from_string_saturating.hpp
4
/// @brief Saturating converters from strings to time points.
5
/// @ingroup userver_universal
6
7
#
include
<
chrono
>
8
#
include
<
string
>
9
10
USERVER_NAMESPACE_BEGIN
11
12
namespace
utils::
datetime
{
13
14
/// @brief Converts strings like "2012-12-12T00:00:00" to
15
/// std::chrono::system_clock::time_point in UTC timezone and saturates on
16
/// overflow
17
/// Example:
18
/// @snippet utils/datetime/from_string_saturating_test.cpp FromStringSaturation
19
std::chrono::system_clock::time_point
FromRfc3339StringSaturating
(
20
const
std::string& timestring);
21
22
/// @brief Converts strings of the specified format starting with "%Y" to
23
/// std::chrono::system_clock::time_point in UTC timezone and saturates on
24
/// overflow.
25
std::chrono::system_clock::time_point
FromStringSaturating
(
26
const
std::string& timestring,
const
std::string& format);
27
28
}
// namespace utils::datetime
29
30
USERVER_NAMESPACE_END
Docs version:
v1.0
,
v2.0
,
trunk/develop
userver
utils
datetime
from_string_saturating.hpp
Generated on Wed May 15 2024 22:34:33 for userver by
Doxygen
1.10.0