-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Labels
type: enhancementA new feature or addition.A new feature or addition.
Description
We and I'm sure others have a lot of code that looks like this sort of thing at the moment:
timeFormat = unsafePartial fromRight $ parseFormatString "HH:mm:ss"
Which is actually quite silly, when it's actually easier, safer, and generally better all round to just construct the format directly:
timeFormat = Hours24 : MinutesTwoDigits : SecondsTwoDigits : Nil
-- or
timeFormat' = L.fromFoldable [Hours24, MinutesTwoDigits, SecondsTwoDigits]
😆
As another advantage of that is Hours24
is better self-documentation than remembering "HH
" vs "hh"
for Hours24
vs Hours12
too, etc.
safareli
Metadata
Metadata
Assignees
Labels
type: enhancementA new feature or addition.A new feature or addition.