Times and Dates
Let’s learn about times and dates in the Go language.
We'll cover the following
Often, we need to work with date and time information to store the time an entry was last used in a database or the time an entry was inserted into a database, which brings us to another interesting topic: working with dates and times in Go.
The time.Time
data type
The king of working with times and dates in Go is the time.Time
data type, which represents an instant in time with nanosecond precision. Each time.Time
value is associated with a location (time zone).
Get hands-on with 1400+ tech skills courses.