MCPcopy Create free account
hub / github.com/4paradigm/OpenMLDB / ParseTimeToSecond

Function ParseTimeToSecond

src/base/strings.h:182–187  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180}
181
182static inline int64_t ParseTimeToSecond(const std::string& time_str,
183 const std::string& format_time) {
184 struct tm timeinfo;
185 strptime(time_str.c_str(), format_time.c_str(), &timeinfo);
186 return mktime(&timeinfo);
187}
188
189} // namespace base
190} // namespace fedb

Callers 1

DelRecycleMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected