should be it

This commit is contained in:
2025-10-24 19:21:19 -05:00
parent a4b23fc57c
commit f09560c7b1
14047 changed files with 3161551 additions and 1 deletions

View File

@@ -0,0 +1,28 @@
//===----------------------------------------------------------------------===//
// DuckDB
//
// icu-helpers.hpp
//
//
//===----------------------------------------------------------------------===//
#pragma once
#include "duckdb.hpp"
#include "unicode/timezone.h"
#include "duckdb/common/types/timestamp.hpp"
namespace duckdb {
struct ICUHelpers {
//! Tries to get a time zone - returns nullptr if the timezone is not found
static unique_ptr<icu::TimeZone> TryGetTimeZone(string &tz_str);
//! Gets a time zone - throws an error if the timezone is not found
static unique_ptr<icu::TimeZone> GetTimeZone(string &tz_str, string *error_message = nullptr);
static TimestampComponents GetComponents(timestamp_tz_t ts, icu::Calendar *calendar);
static timestamp_t ToTimestamp(TimestampComponents data);
};
} // namespace duckdb