Cookies management by TermsFeed Cookie Consent


Learn how to work with date and time in Go. Measure execution time, format dates and perform many other operations using Go time package

Please consider supporting us by disabling your ad blocker

⌚ Unix time in Go [cheatsheet]

Learn how to get, convert and work with the Unix epoch time
cheatsheet time

⏳ Time difference between two dates in Go

shorts time

🕰️ Date and time format in Go cheatsheet

Learn how to format date and time
cheatsheet time

📅 YYYY-MM-DD date format in Go

Learn how to format date without time
introduction time

⏲️ Measure execution time in Go

Learn how to measure the time taken by a function
introduction time

😴 Sleep function in Go - pause the program execution

Learn how to pause the execution of a current Goroutine
introduction time