C APIs to icu::TimeZone getOffsetFromLocal

Description

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.

Activity

Show:
Yoshito Umaoka
March 11, 2021, 6:52 PM

Added BasicTimeZone::getOffsetFromLocal() with updated arguments and ucal_getTimeZoneOffsetFromLocal() in ICU4C as new ICU 69 draft APIs.

Frank Yung-Fong Tang
February 10, 2021, 7:16 PM

follow up ICU4J ticket in

Yusuke Suzuki
January 14, 2021, 1:35 AM

I’ve read meeting notes. I think ucal_getTimeZoneOffsetFromLocal looks good to me

Yusuke Suzuki
January 14, 2021, 1:27 AM


Thanks for sharing info!
Does that also introduce a C API? We need to have C API for this feature.

Frank Yung-Fong Tang
January 7, 2021, 11:23 PM

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.

Fixed

Assignee

Yoshito Umaoka

Reporter

Yusuke Suzuki

Components

Labels

None

Reviewer

None

Priority

major

Time Needed

None

Fix versions