main.go442 chars24 linesOutput:
main.go37 chars2 lines
Explanation:
Date() method of the time package.Format() method of the Time type. The format string "January 02, 2006 03:04:05.000 pm MST" represents the desired format where January is the month in the full name, 02 is the day of the month (with leading zero), 2006 is the year, 03 is the hour in 24-hour format (with leading zero), 04 is the minute, 05 is the second, 000 is the millisecond, pm is the meridian indicator, and MST is the timezone offset.Println() method of the fmt package.gistlibby LogSnag