Skip to content

Add CoreFoundation methods for getting current locale date format#1672

Merged
dbwiddis merged 1 commit intojava-native-access:masterfrom
dbwiddis:dateformat
Jun 6, 2025
Merged

Add CoreFoundation methods for getting current locale date format#1672
dbwiddis merged 1 commit intojava-native-access:masterfrom
dbwiddis:dateformat

Conversation

@dbwiddis
Copy link
Copy Markdown
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
Signed-off-by: Daniel Widdis <widdis@gmail.com>
@dbwiddis
Copy link
Copy Markdown
Contributor Author

dbwiddis commented Jun 6, 2025

@matthiasblaesing any objection to me merging this?

Copy link
Copy Markdown
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