Skip to content

Consider adding specialized format_date fns to DateTimeFormatter #5861

Open
@sffc

Description

@sffc

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-datetimeComponent: datetime, calendars, time zonesS-smallSize: One afternoon (small bug fix or enhancement)

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions