Parses a civil‐time value from the specified absl::string_view into the passed output parameter. Returns true upon successful parsing.
Synopses
Declared in <absl/time/civil_time.h>
bool
ParseCivilTime(
std::string_view s,
CivilDay* c);
bool
ParseCivilTime(
std::string_view s,
CivilHour* c);
bool
ParseCivilTime(
std::string_view s,
CivilMinute* c);
bool
ParseCivilTime(
std::string_view s,
CivilMonth* c);
Parses a civil‐time value from the specified absl::string_view into the passed output parameter. Returns true upon successful parsing.
bool
ParseCivilTime(
std::string_view s,
CivilSecond* c);
bool
ParseCivilTime(
std::string_view s,
CivilYear* c);
Return Value
true upon successful parsing.
Parameters
Name |
Description |
s |
The string to parse. |
c |
Output parameter receiving the parsed civil‐time value. |
Created with MrDocs