Skip to content

ICU-20967 add millisecond to DateIntervalFormat - #978

Merged
FrankYFTang merged 1 commit into
unicode-org:masterfrom
FrankYFTang:ICU-20967-2
Mar 5, 2020
Merged

FrankYFTang merged 1 commit into
unicode-org:masterfrom
FrankYFTang:ICU-20967-2

Conversation

@FrankYFTang

@FrankYFTang FrankYFTang commented Feb 11, 2020 •

Copy link
Copy Markdown
Contributor
Checklist

@jira-pull-request-webhook

Copy link
Copy Markdown

Notice: the branch changed across the force-push!

  • icu4c/source/test/intltest/dtifmtts.cpp is different

View Diff Across Force-Push

~ Your Friendly Jira-GitHub PR Checker Bot

@sffc sffc self-assigned this Feb 12, 2020
@jira-pull-request-webhook

Copy link
Copy Markdown

Notice: the branch changed across the force-push!

  • icu4c/source/i18n/unicode/dtitvfmt.h is now changed in the branch
  • icu4c/source/i18n/unicode/dtitvinf.h is different
  • icu4j/main/classes/core/src/com/ibm/icu/text/DateIntervalFormat.java is different
  • icu4j/main/classes/core/src/com/ibm/icu/text/DateIntervalInfo.java is different

View Diff Across Force-Push

~ Your Friendly Jira-GitHub PR Checker Bot

sffc
sffc previously approved these changes Feb 20, 2020

@sffc sffc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved with two optional comments

Comment thread icu4c/source/test/intltest/dtifmtts.cpp Outdated
int to_second;
int to_millisecond;
const char* skeleton;
const char* expected;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optional: it's nicer to make this const char16_t*, use u"" strings, and then use UnicodeString instead of std::string, and you can also use \u2013 directly (even write it literally into the file).

Comment thread icu4c/source/test/intltest/dtifmtts.cpp Outdated
{ 2019, 2, 10, 1, 23, 45, 321, 2, 24, 45, 987, "s", "45 \\u2013 45"},
{ 2019, 2, 10, 1, 23, 45, 321, 2, 24, 45, 987, "sS", "45.3 \\u2013 45.9"},
{ 2019, 2, 10, 1, 23, 45, 321, 2, 24, 45, 987, "sSS", "45.32 \\u2013 45.98"},
{ 2019, 2, 10, 1, 23, 45, 321, 2, 24, 45, 987, "sSSS", "45.321 \\u2013 45.987"},

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optional: is it worth testing the "SSS" skeleton? Or is that just not supported?

@FrankYFTang

Copy link
Copy Markdown
Contributor Author

PTAL

sffc
sffc previously approved these changes Feb 22, 2020
@sffc

sffc commented Feb 22, 2020

Copy link
Copy Markdown
Member

LGTM please squash

@jira-pull-request-webhook

Copy link
Copy Markdown

Hooray! The files in the branch are the same across the force-push. 😃

~ Your Friendly Jira-GitHub PR Checker Bot

@FrankYFTang
FrankYFTang merged commit be3ee4c into unicode-org:master Mar 5, 2020
@FrankYFTang
FrankYFTang deleted the ICU-20967-2 branch March 16, 2020 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants