Lines Matching refs:buffer
253 char buffer[80] = {0}; variable
260 size_t ftime = strftime(buffer, sizeof(buffer) - 1, "%Ex %EX %A", localTime);
262 EXPECT_STREQ(buffer, "01/01/70 05:14:40 Thursday") << "buffer return error!";
267 ftime = strftime(buffer, sizeof(buffer) - 1, "%y-%m-%d %H:%M:%S", localTime);
268 EXPECT_STREQ(buffer, "38-01-19 03:14:07") << "buffer return error!";
273 ftime = strftime(buffer, sizeof(buffer) - 1, "%Y-%m-%d %H:%M:%S", localTime);
274 EXPECT_STREQ(buffer, "9999-12-31 23:59:59") << "buffer return error!";
279 ftime = strftime(buffer, sizeof(buffer) - 1, "%x %X", localTime);
280 EXPECT_STREQ(buffer, "12/13/01 20:45:52") << "buffer return error!";
282 ftime = strftime(buffer, sizeof(buffer) - 1, "%Y-%m-%d %H:%M:%S", localTime);
284 EXPECT_STREQ(buffer, "1901-12-13 20:45:52") << "buffer return error!";
295 char buffer[80] = {0}; variable
299 size_t ftime = strftime_l(buffer, sizeof(buffer) - 1, "%F %T %Z", tm1, nullptr);
301 EXPECT_STREQ(buffer, "1970-01-01 05:14:40 UTC") << "buffer return error!";