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

Function GetTestTimezoneDatabaseRoot

cpp/src/arrow/testing/util.cc:126–132  ·  view source on GitHub ↗

TODO(GH-48593): Remove when libc++ supports std::chrono timezones.

Source from the content-addressed store, hash-verified

124
125// TODO(GH-48593): Remove when libc++ supports std::chrono timezones.
126std::optional<std::string> GetTestTimezoneDatabaseRoot() {
127 const char* c_root = std::getenv("ARROW_TIMEZONE_DATABASE");
128 if (!c_root) {
129 return std::optional<std::string>();
130 }
131 return std::make_optional(std::string(c_root));
132}
133
134// TODO(GH-48593): Remove when libc++ supports std::chrono timezones.
135ARROW_SUPPRESS_DEPRECATION_WARNING

Callers 2

public_api_test.ccFile · 0.85
InitTestTimezoneDatabaseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected