awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
dromara avatar

dromara/carbon

0
View on GitHub↗
carbon.go-pkg.com↗

Carbon

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 management, the parsing of date strings via fuzzy templates and standard formats, and the calculation of relative time and meteorological seasons. For quality assurance, the project includes tools for deterministic time mocking to freeze the system clock during unit tests.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Features

  • Date and Time Libraries - Provides a semantic interface for parsing, validating, and manipulating date and time values.
  • Temporal Type Wrappers - Wraps standard library time types in a custom structure to provide a more expressive and readable API.
  • Date and Time - Provides a semantic interface for performing complex date and time calculations without external dependencies.
  • Localized Formatting - Formats date and time output using ISO 639-1 language codes to support global languages.
  • Date Object Creators - Generates time objects from individual components like year, month, and day or from Unix timestamps.
  • Time Zone Management - Handles time zone settings and performs conversions between different regional time offsets.
  • Cross-Calendar Conversions - Transforms dates between Gregorian, Chinese Lunar, Persian, and Hebrew calendar systems.
  • Inter-Calendar Transformations - Transforms dates between various systems including Julian, Chinese Lunar, Persian, and Hebrew calendars.
  • Multi-Calendar Conversions - Enables transformations between Gregorian, Chinese Lunar, Persian, and Hebrew calendar systems.
  • Temporal Component Extractors - Retrieves specific units of time such as years, months, days, or timestamps from a given date.
  • Custom Date-Time Format Patterns - Converts time objects into strings using semantic tokens for custom formatting of dates and time zones.
  • Token-Based Templates - Uses alphanumeric tokens in format strings to map date components into custom output representations.
  • Date String Parsers - Converts date and time strings into usable objects using standard patterns and custom layouts.
  • Template-Based Date Parsing - Matches input strings against predefined or fuzzy patterns to resolve them into usable date objects.
  • Locale Mappings - Uses lookup tables and ISO 639-1 codes to map temporal labels into different human languages.
  • Relative Date Generators - Generates date objects for days preceding or following the current date using semantic shortcuts.
  • Date Localizations - Supports the translation of date and time descriptions into multiple languages using ISO 639-1 locale settings.
  • Date Difference Calculators - Computes the duration between two time points and expresses results in human-readable or numeric units.
  • Relative Time Humanization - Expresses the difference between two dates as human-readable relative time strings across multiple locales.
  • Time Zone Converters - Provides functions to set, retrieve, and convert time instances between different geographical time zones.
  • Multi-Calendar Converters - Implements mathematical algorithms to convert Gregorian dates into lunar, Persian, or Hebrew calendar systems.
  • Localized Calendar Labels - Translates calendar-related labels such as months, weeks, and seasons into multiple supported languages.
  • Date and Time Formatting - Converts time strings into objects and outputs them in ISO and RFC standards.
  • Internationalized Date Formatting - Provides locale-aware formatting to convert date and time objects into human-readable strings.
  • Time Freezing Utilities - Locks the system clock to a constant value to ensure deterministic results in unit tests.
  • Global Defaults - Enables setting global defaults for timezones, language locales, and weekend definitions.
  • String Localization - Provides mechanisms for retrieving and formatting localized time and date components.
  • Standard Time Formatters - Converts time objects into standards like ISO8601 and RFC series for display and transmission.
  • Deterministic Testing Clocks - Decouples time measurement from the system clock to enable reproducible Go unit tests.
  • Temporal Translation Mappings - Uses internal translation mappings to localize date and time strings into various languages.
  • System Clock Mocks - Allows freezing the system clock with a fixed timestamp to ensure deterministic behavior during unit tests.
  • Time Simulation Utilities - Intercepts native timing functions to simulate a fixed clock for subsequent date operations.
  • Global Configuration - Provides a centralized configuration system to synchronize default timezones and locales across the application.
  • Date And Time - Semantic and developer-friendly time package.
5,223 stars·278 forks·Go·MIT·31 views

Star history

Star history chart for dromara/carbonStar history chart for dromara/carbon

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

Frequently asked questions

What does dromara/carbon do?

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.

What are the main features of dromara/carbon?

The main features of dromara/carbon are: Date and Time Libraries, Temporal Type Wrappers, Date and Time, Localized Formatting, Date Object Creators, Time Zone Management, Cross-Calendar Conversions, Inter-Calendar Transformations.

Which projects share features with dromara/carbon?

Projects with overlapping indexed features include: arrow-py/arrow — Arrow is a Python date and time library that provides a simplified interface for creating and manipulating timestamps… sdispater/pendulum — Pendulum is a Python date and time library that provides a simplified interface for date arithmetic, ISO parsing,… jodaorg/joda-time — Joda-Time is a Java date and time library and framework used for parsing, representing, and calculating temporal data.… tc39/proposal-temporal — This project is a proposal for a new immutable date and time API in JavaScript. It serves as a precision time-tracking… howardhinnant/date — This project is a comprehensive date and time library designed for parsing, formatting, and calculating dates and… python-pendulum/pendulum — Pendulum is a Python datetime library used for creating, manipulating, and formatting date and time objects with…

Projects sharing features with Carbon

These projects share indexed features with Carbon. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • arrow-py/arrowarrow-py avatar

    arrow-py/arrow

    9,046View on GitHub↗

    Arrow is a Python date and time library that provides a simplified interface for creating and manipulating timestamps by wrapping the Python standard library. It serves as a tool for managing date objects, handling timezone offsets, and performing relative date calculations. The library is distinguished by its ability to humanize timestamps into natural language relative descriptions across multiple locales and parse human-readable time phrases back into precise date objects. It also features a specialized parser for converting ISO 8601 strings and custom formatted text into date objects. Br

    Python
    View on GitHub↗9,046
  • sdispater/pendulumsdispater avatar

    sdispater/pendulum

    6,668View on GitHub↗

    Pendulum is a Python date and time library that provides a simplified interface for date arithmetic, ISO parsing, localization, and timezone management. It serves as a replacement for the standard library datetime module, extending existing classes to maintain compatibility while offering a more intuitive management interface. The library distinguishes itself through a natural language date formatter that translates time differences into localized strings and a dedicated ISO 8601 date parser. It also includes tools for time-dependent logic testing, allowing the system clock to be mocked or fi

    Python
    View on GitHub↗6,668
  • jodaorg/joda-timeJodaOrg avatar

    JodaOrg/joda-time

    4,984View on GitHub↗

    Joda-Time is a Java date and time library and framework used for parsing, representing, and calculating temporal data. It provides a thread-safe temporal API that uses immutable objects to ensure concurrency safety and adheres to the ISO8601 standard. The project is distinguished by its pluggable calendar system, which supports diverse chronologies including Gregorian, Buddhist, Coptic, Ethiopic, and Islamic calendars. It also functions as a time zone management tool, utilizing an internal IANA-based zone database to translate instants and update daylight savings rules independently of the ho

    Javadate-timejavajoda
    View on GitHub↗4,984
  • tc39/proposal-temporaltc39 avatar

    tc39/proposal-temporal

    3,701View on GitHub↗

    This project is a proposal for a new immutable date and time API in JavaScript. It serves as a precision time-tracking library and a multi-calendar date engine designed to replace the legacy Date object. The system is distinguished by its support for multiple calendar systems beyond the ISO standard and its use of IANA-based time zone resolution. It provides a framework for managing daylight saving transitions and UTC offsets while maintaining nanosecond precision for global timestamps. The API covers broad functional areas including complex date and time arithmetic, locale-aware formatting,

    HTML
    View on GitHub↗3,701
Compare all 30 related projects→