Skip to content
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

Consider adding specialized format_date fns to DateTimeFormatter #5861

Open
sffc opened this issue Nov 23, 2024 · 0 comments
Open

Consider adding specialized format_date fns to DateTimeFormatter #5861

sffc opened this issue Nov 23, 2024 · 0 comments
Labels
C-datetime Component: datetime, calendars, time zones

Comments

@sffc
Copy link
Member

sffc commented Nov 23, 2024

In #5269 (comment), we made the following conclusion:

pub struct Formatter<FSet>(FSet);

pub struct YMD;

struct Date;

impl<FSet> Formatter<FSet> {
    pub fn format() {

    }
}

// Stretch 1
impl Formatter<YMD> {
    /// See aliases module for more information
    pub fn format_date(x: Date) {}
}

// Stretch 2
type YMDFormatter = Formatter<YMD>;

This issue is to track progress on the stretch goals listed above.

@sffc sffc added the C-datetime Component: datetime, calendars, time zones label Nov 23, 2024
@sffc sffc added this to the ICU4X 2.0 Stretch ⟨P2⟩ milestone Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-datetime Component: datetime, calendars, time zones
Projects
None yet
Development

No branches or pull requests

1 participant