C APIs to icu::TimeZone getOffsetFromLocal
Currently, we lack several APIs in C to icu::TimeZone. And this enforces embedder to use C++ APIs.
The example APIs are the followings.
icu::BasicTimeZone::getOffsetFromLocal (We want to know offset and dstOffset)
icu::TimeZone::getOffset (We want to know offset and dstOffset)
I suggest implementing ucalc APIs for this, or implementing UTimeZone struct and APIs that accesses to icu::TimeZone information.
Added BasicTimeZone::getOffsetFromLocal() with updated arguments and ucal_getTimeZoneOffsetFromLocal() in ICU4C as new ICU 69 draft APIs.
follow up ICU4J ticket in
I’ve read meeting notes. I think ucal_getTimeZoneOffsetFromLocal looks good to me
Thanks for sharing info!
Does that also introduce a C API? We need to have C API for this feature.
The ICU-TC meeting yesterday decide to not take new api nor to move that function up to TimeZone, but just move that method from marking internal to draft public.