Cute Gopher Mascot

The Best Go Libraries For Date and Time (22)

Discover the best Go libraries for Date and Time! Find the perfect tools to streamline your development and boost productivity. From strftime to timespan, we've got you covered. Let the coding begin!

strftime

C99-compatible strftime formatter.

See More! 🚀

timespan

For interacting with intervals of time, defined as a start time and a duration.

See More! 🚀

approx

A Duration extension supporting parsing/printing durations in days, weeks and years.

See More! 🚀

carbon

A simple, semantic and developer-friendly golang package for datetime.

See More! 🚀

carbon

Simple Time extension with a lot of util methods, ported from PHP Carbon library.

See More! 🚀

cronrange

Parses Cron-style time range expressions, checks if the given time is within any ranges.

See More! 🚀

date

Augments Time for working with dates, date ranges, time spans, periods, and time-of-day.

See More! 🚀

dateparse

Parse date's without knowing format in advance.

See More! 🚀

durafmt

Time duration formatting library for Go.

See More! 🚀

feiertage

Set of functions to calculate public holidays in Germany, incl. specialization on the states of Germany (Bundesländer). Things like Easter, Pentecost, Thanksgiving...

See More! 🚀

go-anytime

Parse dates/times like "next dec 22nd at 3pm" and ranges like "from today until next thursday" without knowing the format in advance.

See More! 🚀

go-datebin

A simple datetime parse pkg.

See More! 🚀

go-persian-calendar

The implementation of the Persian (Solar Hijri) Calendar in Go (golang).

See More! 🚀

go-str2duration

Convert string to duration. Support time.Duration returned string and more.

See More! 🚀

timeutil

Useful extensions (Timedelta, Strftime, ...) to the golang's time package.

See More! 🚀

go-sunrise

Calculate the sunrise and sunset times for a given location.

See More! 🚀

go-week

An efficient package to work with ISO8601 week dates.

See More! 🚀

gostradamus

A Go package for working with dates.

See More! 🚀

iso8601

Efficiently parse ISO8601 date-times without regex.

See More! 🚀

kair

Date and Time - Golang Formatting Library.

See More! 🚀

now

Now is a time toolkit for golang.

See More! 🚀

tuesday

Ruby-compatible Strftime function.

See More! 🚀