MCPcopy Create free account
hub / github.com/apache/arrow / FormatDays

Method FormatDays

cpp/src/arrow/util/formatting.h:440–451  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

438 protected:
439 template <typename Appender>
440 Return<Appender> FormatDays(arrow_vendored::date::days since_epoch, Appender&& append) {
441 arrow_vendored::date::sys_days timepoint_days{since_epoch};
442
443 constexpr size_t buffer_size = detail::BufferSizeYYYY_MM_DD();
444
445 std::array<char, buffer_size> buffer;
446 char* cursor = buffer.data() + buffer_size;
447
448 detail::FormatYYYY_MM_DD(arrow_vendored::date::year_month_day{timepoint_days},
449 &cursor);
450 return append(detail::ViewDigitBuffer(buffer, cursor));
451 }
452};
453
454template <>

Callers

nothing calls this directly

Calls 4

BufferSizeYYYY_MM_DDFunction · 0.85
FormatYYYY_MM_DDFunction · 0.85
ViewDigitBufferFunction · 0.85
dataMethod · 0.45

Tested by

no test coverage detected