Skip to content

Add CoreFoundation methods for getting current locale date format #1672

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 6, 2025

Conversation

dbwiddis
Copy link
Contributor

@dbwiddis dbwiddis commented May 25, 2025

Maps methods needed to get the locale-specific date/time format. This is needed to parse the output of some command-line programs.

Motivation/sample code:

Another implementation:

Enum from the header file CFDateFormatter.h:

typedef CF_ENUM(CFIndex, CFDateFormatterStyle) {	// date and time format styles
    kCFDateFormatterNoStyle = 0,
    kCFDateFormatterShortStyle = 1,
    kCFDateFormatterMediumStyle = 2,
    kCFDateFormatterLongStyle = 3,
    kCFDateFormatterFullStyle = 4
};

@dbwiddis dbwiddis force-pushed the dateformat branch 2 times, most recently from e69ef2e to 77697b5 Compare May 25, 2025 21:27
@dbwiddis dbwiddis force-pushed the dateformat branch 2 times, most recently from e8259d3 to a3336a8 Compare May 25, 2025 22:01
@dbwiddis
Copy link
Contributor Author

dbwiddis commented Jun 6, 2025

@matthiasblaesing any objection to me merging this?

Copy link
Member

@matthiasblaesing matthiasblaesing left a comment

Choose a reason for hiding this comment

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

Looks sane to me.

@dbwiddis dbwiddis merged commit 86a2ff1 into java-native-access:master Jun 6, 2025
12 checks passed
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