MCPcopy Create free account
hub / github.com/bytedance/bolt / timestampToString

Function timestampToString

bolt/type/tests/TimestampTest.cpp:45–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43namespace {
44
45std::string timestampToString(
46 Timestamp ts,
47 const TimestampToStringOptions& options) {
48 std::tm tm;
49 Timestamp::epochToUtc(ts.getSeconds(), tm);
50 return Timestamp::tmToString(tm, ts.getNanos(), options);
51}
52
53TEST(TimestampTest, fromDaysAndNanos) {
54 EXPECT_EQ(

Callers 2

TEST_FFunction · 0.85
TESTFunction · 0.85

Calls 1

tmToStringFunction · 0.85

Tested by

no test coverage detected