MCPcopy Create free account
hub / github.com/antirez/llama.cpp-deepseek-v4-flash / format_time

Function format_time

common/chat.cpp:33–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31using json = nlohmann::ordered_json;
32
33static std::string format_time(const std::chrono::system_clock::time_point & now, const std::string & format) {
34 auto time = std::chrono::system_clock::to_time_t(now);
35 auto local_time = *std::localtime(&time);
36 std::ostringstream ss;
37 ss << std::put_time(&local_time, format.c_str());
38 auto res = ss.str();
39 return res;
40}
41
42static json safe_args_parse(const std::string & to_parse) {
43 std::string stripped = to_parse;

Callers 1

Calls 1

strMethod · 0.45

Tested by

no test coverage detected