# dromara/carbon

A simple, semantic and developer-friendly  time  package for golang

Repository: https://github.com/dromara/carbon
Canonical: https://ross.abutalabs.com/products/dromara-carbon
Homepage: https://carbon.go-pkg.com
Language: Go
License: MIT
License Family: permissive
Topics: carbon, date, datetime, time, timezone, lunar, i18n, jalaali, julian, persian, calendar, gorm, xorm, hebrew
Last push: 2026-08-24T16:56:39+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 96, longevity 100
- inputs: {"age_days": 2186, "days_push": 9, "days_rel": 24, "gap_med": 6.5, "n_releases_24m": 33}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5226, forks 264 (observed 2026-08-28T04:09:13.269258+00:00)

## What it is
Carbon is a lightweight, semantic, and developer-friendly time and date library for Go with zero third-party dependencies and 100% unit test coverage. It supports timezone handling, multiple calendar systems (lunar, Persian/Jalaali, Julian, Hebrew), and i18n, with integrations for GORM and XORM.

## Use cases
- parse and format dates in go
- convert between timezones in golang
- work with lunar or persian calendar dates
- humanize relative times like '3 minutes ago'
- compare and diff dates in go
- integrate datetime handling with gorm models

## When to choose
- you need a rich, chainable datetime API beyond Go's standard time package
- you need multi-calendar or multilingual date support
- you want a dependency-free, well-tested time library

## When to avoid
- you only need basic time operations already covered by the standard library
- your project is not written in Go

## Facets
- artifact type: library
- maturity: active
- function: date-time, internationalization
- domain: developer-tools, backend
- platform: go, cross-platform
- tags: datetime, timezone, lunar-calendar, persian-calendar, hebrew-calendar, jalaali, julian-calendar, gorm-integration, xorm-integration, i18n, semantic-api

## Member repositories
- dromara/carbon (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:13.269258+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:59:41.043035+00:00, confidence not recorded.
  - readme: https://github.com/dromara/carbon (fetched 2026-08-28T04:09:13.269258+00:00, sha b930cbd594e0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
