Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Rust
  3. chrono

chrono

NOASSERTIONRustv0.4.45

A timezone-aware date and time library for Rust with configurable parsing, formatting, and correct calendar operations.

GitHubGitHub
3.9k stars607 forks0 contributors

What is chrono?

Chrono is a timezone-aware date and time library for Rust that provides correct operations within the proleptic Gregorian calendar. It solves the problem of handling dates and times accurately across different timezones, with support for parsing, formatting, and safe operations that avoid invalid or ambiguous results.

Target Audience

Rust developers who need reliable, timezone-aware date and time functionality for applications like scheduling, logging, data processing, or internationalization.

Value Proposition

Developers choose Chrono for its correctness guarantees, explicit handling of edge cases, and flexible timezone support without bloating binary sizes by default, making it a robust alternative to basic time handling in Rust.

Overview

Date and time library for Rust

Use Cases

Best For

  • Building applications that require accurate timezone conversions
  • Parsing and formatting dates and times with custom formats
  • Handling calendar operations safely in the proleptic Gregorian calendar
  • Developing Rust libraries or tools that depend on reliable date/time logic
  • Working with OS-local timezone data in Rust projects
  • Ensuring correctness in scheduling or event-handling systems

Not Ideal For

  • Projects requiring non-Gregorian calendars, such as cultural or historical event systems
  • Systems that must handle leap seconds with full correctness, like scientific or financial timekeeping
  • Applications with date calculations exceeding +/- 262,000 years from the common epoch

Pros & Cons

Pros

Timezone-Aware by Default

DateTime types include timezone support out of the box, preventing common errors in timezone conversions as highlighted in the README.

Safe Operations

Potentially invalid or ambiguous operations return Option or MappedLocalTime, ensuring explicit error handling and preventing silent bugs.

Configurable Formatting

Uses an strftime-inspired syntax for parsing and formatting, allowing flexible date and time representation without complex APIs.

Efficient Design

Types and operations are implemented to be reasonably efficient, optimizing performance for common date and time calculations.

Cons

Limited Calendar Support

Only the proleptic Gregorian calendar is supported, excluding other calendar systems, which is a stated limitation in the README.

Incomplete Leap Second Handling

Leap seconds can be represented but not fully supported, potentially leading to inaccuracies in time-sensitive applications like logging or synchronization.

Additional Timezone Setup

Full timezone functionality requires integrating companion crates like Chrono-TZ, adding complexity to the build process and increasing binary size.

Frequently Asked Questions

Quick Stats

Stars3,880
Forks607
Contributors0
Open Issues158
Last commit4 days ago
CreatedSince 2014

Tags

#serde#date-time#time#calendar#date#localization#rust#no-std#timezone-handling

Built With

R
Rust

Included in

Rust56.6k
Auto-fetched 17 hours ago

Related Projects

burntSushi/jiffburntSushi/jiff

A datetime library for Rust that encourages you to jump into the pit of success.

Stars2,780
Forks106
Last commit4 days ago
timetime

Date and time handling in Rust.

Stars1,326
Forks305
Last commit1 day ago
rusti-calrusti-cal

⚡️ A cal(1) clone lightning-fast ~ more than 9999 years ~ Written in Rust 🦀

Stars83
Forks7
Last commit1 month ago
msms

Fast abstraction for converting human-like times into milliseconds.

Stars36
Forks2
Last commit4 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub