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

Function GetTestTimezoneDatabaseRoot

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

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

Source from the content-addressed store, hash-verified

131
132// TODO(GH-48593): Remove when libc++ supports std::chrono timezones.
133std::optional<std::string> GetTestTimezoneDatabaseRoot() {
134 const char* c_root = std::getenv("ARROW_TIMEZONE_DATABASE");
135 if (!c_root) {
136 return std::optional<std::string>();
137 }
138 return std::make_optional(std::string(c_root));
139}
140
141// TODO(GH-48593): Remove when libc++ supports std::chrono timezones.
142ARROW_SUPPRESS_DEPRECATION_WARNING

Callers 2

public_api_test.ccFile · 0.85
InitTestTimezoneDatabaseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected