For a library for handling dates and times, the first results are dromara/carbon (Carbon is a comprehensive Go library that extends the standard time package with robust support for multi-calendar conversions, advanced localization, and simplified temporal calculations, making it a perfect fit for your requirements), jinzhu/now (This library provides a robust set of utilities for calendar boundary calculations and relative date manipulation, serving as a specialized extension to the standard Go time package) and araddon/dateparse (This library provides robust date parsing capabilities that simplify the standard library's limitations, making it a useful tool for handling varied date formats in Go applications). rickb777/date and masterminds/sprig round out the shortlist. Compare the match explanations and check the project documentation against your requirements.
We curate open-source GitHub repositories matching “best go date and time libraries”. Results are ranked by relevance to your query — pick filters below to narrow, or refine with AI.
Carbon is a Go library for semantic date and time calculations, formatting, and parsing. It provides a semantic interface to simplify temporal data handling and improve the readability of date and time manipulations. The library is distinguished by its support for multi-calendar date conversion, allowing transformations between Gregorian, Chinese Lunar, Persian, and Hebrew calendar systems. It also includes a localized temporal framework that uses ISO 639-1 codes to format dates and relative time differences across multiple language locales. Additional capabilities cover global time zone man
Carbon is a comprehensive Go library that extends the standard time package with robust support for multi-calendar conversions, advanced localization, and simplified temporal calculations, making it a perfect fit for your requirements.
Now is a date and time manipulation library for Go designed to generate precise calendar boundaries and convert time strings into structured objects. It serves as a utility for calculating the start and end timestamps for days, weeks, months, and years. The project provides tools for calculating specific weekdays relative to a reference point and performing date arithmetic to determine time ranges. It includes a toolkit for parsing date and time strings using configurable layouts and formats. The library functions as a wrapper for the standard Go time package to provide an interface for comp
This library provides a robust set of utilities for calendar boundary calculations and relative date manipulation, serving as a specialized extension to the standard Go time package.
This library provides robust date parsing capabilities that simplify the standard library's limitations, making it a useful tool for handling varied date formats in Go applications.
A Go package for working with dates
This library provides specialized types for date-only and period calculations that complement the standard library's time-focused approach, offering robust support for parsing, formatting, and calendar arithmetic.
Sprig is a comprehensive library of helper functions designed to extend the Go text template engine. It provides a wide array of custom functions that can be injected into the engine to enable complex data manipulation and logic directly within templates. The project offers specialized capabilities for cryptography, including the generation of private keys, X.509 certificates, and secure password hashes. It also includes advanced logic extensions for semantic versioning comparison, ternary evaluations, and the resolution of environment variables from the host operating system. The library co
Sprig is a template function library that includes some basic date and time utilities, but it is not a dedicated date and time library designed for complex calendar, recurrence, or advanced time zone management.
| Repository | Stars | Language | License | Last push |
|---|---|---|---|---|
| dromara/carbon | 5.2K | Go | MIT | |
| jinzhu/now | 4.7K | Go | MIT | |
| araddon/dateparse |
| 2.1K |
| Go |
| mit |
| rickb777/date | 142 | Go | BSD-3-Clause |
| masterminds/sprig | 4.7K | Go | mit |