Go for C# developers: Parsing and Formatting time

added by DotNetKicks
11/11/2016 5:05:46 PM

2 Kicks, 479 Views

Time for something that really boggled my mind in the beginning; the choice of how time formats are created in Go. In most languages you used something like "%Y-%m-%d %H:%M:%S %z" to format time. You might even encounter "YYYY-mm-dd HH:MM:ss zzzz". It should be fairly obvious that we are looking at a "year-month-day hour:minute:seconf timezone" format.