Description
Carbon is a lightweight, semantic and developer-friendly time package for Go, maintained in the dromara organization. The readme says it does not depend on any third-party package, has 100% unit test coverage, has been used by the Docker organization, and is included in the awesome-go and hello-github lists. It requires Go 1.18 or later. By default, the timezone is UTC, the language locale is English, weeks start on Monday, and Saturday and Sunday are the weekend. The readme shows example usage and links an official document with more examples and a benchmark report. Carbon was donated to the dromara organization, so the repository address changed. If you used the older golang-module/carbon path, the readme says to replace it in go.mod with the new repository. The project is also available on gitee and gitcode. It is MIT licensed. The readme credits several libraries as references, including Joda-Time, Arrow, Moment.js, Day.js, Carbon for PHP and nodatime, and says it was developed with GoLand under the JetBrains free open source license.…
Highlights
- Semantic Go time package with no dependencies
- 100% unit test coverage
- UTC by default, English locale, Monday week start
- MIT licensed
Ratings & Reviews
No ratings yet
Be the first to rate Carbon.
People also visit

modern-go-guidelines
Enhances Claude Code with modern Go guidelines up to go 1.26 version
Carbon FAQ
What is Carbon?
A Go package for working with dates and times in a simple, readable way.
Which Go version does it need?
Go 1.18 or later, according to the readme.
What are the defaults?
UTC as the timezone, English as the locale, Monday as the start of the week, and Saturday and Sunday as the weekend.
Did the import path change?
Yes. The project moved to the dromara organization, so update go.mod if you used golang-module/carbon.
Does it have dependencies?
The readme says Carbon does not depend on any third-party package.
What license is it under?
MIT.
What are the best Carbon alternatives?
Popular alternatives to Carbon include Carbonapi, Time Simple and UTCTime. See all Carbon alternatives







