Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
very good solution,
but you could also have used your formatter
DTF
for the parsing, instead splitting on the PIPE:LocalTime.parse(s, DTF).toSecondOfDay
sorry, I didn't saw that the inputs have randomly 1 or two numbers, so the Formatter can't be used for Parsing; you would need a FORMATTER and a PARSER, where the PARSER will use optional section:
this was an inspirational solution to look at... so clean and so great! both the logic and formatting - I think I even like splitting the ternary over three lines. well done
Awesome solution. I planned on using DateTimeFormatter.ofPattern() too, but I've never really used DateTime related stuff, so I couldn't figure out how to calcualte everything with that type.
Pretty much what I wanted to do, but couldn't find anything about how to use existing libs to format HH:MM:SS. Only found old arse posts about Date and Calender.
Groovy solutions there, very nice.
rename howmanyBees > howManyBees