Ok, firstly I have to admit I did some googling (I meant that I'd memorised how to format strings and decimals to different decimal places haha) but, this?
LocalDate date = LocalDate.now(); LocalTime time = LocalTime.now(); System.out.println(String.format("%8tR %tY", time, date));
I guess I am a fake developer after all.
I actually meant this
String.format("%2$tY%2$tR%1$8s", "dev.to", new Date())
Yes I googled the documentation.
Ah I see, makes sense, sorry I got a little confused by the wording.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Ok, firstly I have to admit I did some googling (I meant that I'd memorised how to format strings and decimals to different decimal places haha) but, this?
I guess I am a fake developer after all.
I actually meant this
Yes I googled the documentation.
Ah I see, makes sense, sorry I got a little confused by the wording.