Date and Time

Libraries for working with dates and times.

now4.5K

Now is a time toolkit for golang.

dateparse2.1K

Parse date's without knowing format in advance.

carbon776

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

durafmt497

Time duration formatting library for Go.

go-persian-calendar209

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

gostradamus204

A Go package for working with dates.

timeutil192

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

go-sunrise153

Calculate the sunrise and sunset times for a given location.

iso8601149

Efficiently parse ISO8601 date-times without regex.

date136

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

go-str2duration104

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

timespan83

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

feiertage48

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

go-anytime24

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

kair24

Date and Time - Golang Formatting Library.

cronrange18

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

approx13

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

strftime13

C99-compatible strftime formatter.

tuesday12

Ruby-compatible Strftime function.

go-week9

An efficient package to work with ISO8601 week dates.

go-datebin4

A simple datetime parse pkg.

carbon

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