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

lightFormat function #1010

Closed
kossnocorp opened this issue Dec 12, 2018 · 1 comment
Closed

lightFormat function #1010

kossnocorp opened this issue Dec 12, 2018 · 1 comment
Milestone

Comments

@kossnocorp
Copy link
Member

kossnocorp commented Dec 12, 2018

format is one of the most (if not the most) popular function in date-fns, but because it involves locales it's one the most (if not the most) heavyweight function in date-fns.

Given that v2 locales became even more heavyweight, I want to introduce lightFormat that will cover the most common cases and address the size problem.

The current goal is to be able to print ISO 8601 plus hh representing 12-hour clock and a..aaa representing am/pm.

@kossnocorp
Copy link
Member Author

Closed by #1015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant