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

Function set_timezone_database

r/src/config.cpp:38–49  ·  view source on GitHub ↗

[[arrow::export]]

Source from the content-addressed store, hash-verified

36
37// [[arrow::export]]
38void set_timezone_database(cpp11::strings path) {
39 auto paths = cpp11::as_cpp<std::vector<std::string>>(path);
40 if (path.size() != 1) {
41 cpp11::stop("Must provide a single path to the timezone database.");
42 }
43
44 ARROW_SUPPRESS_DEPRECATION_WARNING
45 arrow::GlobalOptions options;
46 options.timezone_db_path = std::make_optional(paths[0]);
47 ARROW_UNSUPPRESS_DEPRECATION_WARNING
48 arrow::StopIfNotOk(arrow::Initialize(options));
49}

Callers 1

Calls 3

stopFunction · 0.85
InitializeFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected