Proposal: strftime-based calendar/datetime formatting

@josevalim Looks good. I understand why the MyApp.Calendar.format_config(:pt_br) approach. And its easy to integrate with my Cldr project so that Cldr users can adopt Calendar.format easily.

Totally ok with not agreeing. I just can’t reconcile how to do what you suggest and still use the Date, Time and DateTime standard structs which have a :calendar field only. Also every calendar is basically just a different representation of the same moments in time so by extension aren’t you saying there is only one calendar and multiple different representations that model year, month, day in alternate ways? Anyway, off topic for this thread.

I have nothing else to add to the proposal and I think a lot of users will benefit from it.

1 Like