Go time layout to Java DateTimeFormatter.

Every Go time layout field maps cleanly — the table below is the whole story.

Java DateTimeFormatter

uuuu-MM-dd HH:mm

Reference · Mon, Jan 2 2006, 3:04:05 PM MST

2006-01-02 15:04

2006-01-02 15:04

Right now, your zone

Both sides render the same instant — the translation is faithful.