Time in Golang - Working With Time, Duration, and Dates (With Examples)
This tutorial will teach you how to work with Time in Go (Golang) - including how to parse and format date-time strings, add and subtract time durations, get the current system time, and handle time zones effectively. The main library we’ll use when working with times and dates is the time standard library. Getting the Current System Time Let’s begin by creating a new Time instance from the current system time:...