You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm laying out some text with multiple dates and a format argument. I would like to know the maximum size of a formatted date. Calculating the size of all my formatted dates takes too much time for me. (After implementing this I realized I didn't really need it, but since I already did it, here it is)
_locale being private/not exported prevents implementing enumeration without modifying the library.
I forked the library and provided an exported enumerate function that was implemented basically by a copy paste of _processFormat. https://github.com/Linkviii/strftime
I'm laying out some text with multiple dates and a format argument. I would like to know the maximum size of a formatted date. Calculating the size of all my formatted dates takes too much time for me.(After implementing this I realized I didn't really need it, but since I already did it, here it is)_locale
being private/not exported prevents implementing enumeration without modifying the library.I forked the library and provided an exported
enumerate
function that was implemented basically by a copy paste of_processFormat
. https://github.com/Linkviii/strftimeExcerpts of my
demo-enum.js
:I'm not sure this is a feature this library would be interested in supporting, but I thought I'd leave this issue here in case anyone is interested.
The text was updated successfully, but these errors were encountered: