time

Ergonomic, no-std-compatible date and time handling for Rust with parsing, formatting, and macro literals.

Library
Cargo
v0.3.55
1,328stars
Apache License 2.0

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
88/100Excellent
Development Activity88
Maintenance96
Community80
Maturity60
Momentum28

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation.How we score it →
83/100Excellent
Architecture85
Code Quality88
Innovation80
Learning Curve78

The time crate is a comprehensive date and time handling library for Rust, providing Date, Time, PrimitiveDateTime, OffsetDateTime, Duration, and UtcOffset types built around correctness and ergonomics. It supports both a runtime format-description parser and compile-time macros (date!, time!, datetime!, format_description!) for zero-cost literal construction.

The crate is no_std-compatible (with an alloc feature for heap-using functionality), integrates with serde for serialization, and offers optional interop with rand, quickcheck, and JavaScript’s Date via js-sys for WASM targets. It is one of the most widely used date/time crates in the Rust ecosystem, serving as a lower-level alternative or complement to chrono.

What You Get

  • Core types for Date, Time, PrimitiveDateTime, OffsetDateTime, UtcDateTime, Duration, and UtcOffset
  • Compile-time macros (date!, time!, datetime!, format_description!) for validated literal construction
  • A configurable format-description system for parsing and formatting dates/times at runtime
  • no_std support (with an alloc feature) for embedded and constrained environments
  • Optional serde, rand, and quickcheck integrations for serialization and property-based testing
  • A companion time-macros crate providing the proc-macro implementations used by the main crate

Common Use Cases

  • Representing and manipulating timestamps in a Rust backend service without pulling in a full chrono dependency
  • Parsing and formatting dates/times from external APIs using configurable format descriptions
  • Validating date/time literals at compile time via macros to catch invalid dates before runtime
  • Using date/time types in no_std or embedded Rust projects where the standard library isn’t available

Under The Hood

Architecture - The time workspace splits responsibilities across three crates: time-core (shared internal primitives), time-macros (proc-macros for compile-time literal validation), and the main time crate exposing public types like Date (date.rs), OffsetDateTime (offset_date_time.rs), and SignedDuration/Duration (signed_duration.rs), with dedicated parsing/ and formatting/ modules implementing the format-description engine. Tech Stack - Pure Rust with a 2024 edition and MSRV of 1.88.0, using deranged for range-constrained integers, powerfmt for formatting helpers, num-conv for safe numeric conversions, and optional dependencies on serde, rand (multiple versions supported via feature flags rand08/rand09/rand010), quickcheck, and js-sys for WASM/JS interop. Code Quality - The time crate has an extensive test suite (43 test files under src/tests.rs and submodules) plus quickcheck-based property tests (quickcheck.rs) for randomized validation of date/time arithmetic; the project publishes a coverage badge via Codecov and maintains a documented MSRV policy guaranteeing compatibility with the two prior stable Rust releases. API Design - The crate favors compile-time-checked macros (date!(2024-01-01)) over runtime-fallible constructors where possible, reducing a whole class of invalid-date bugs; comprehensive documentation is published both on docs.rs and a dedicated ‘book’, and the maintainer explicitly documents an AI usage policy (AI_POLICY.md) for contributions.

Used by 19 apps in this directory

TypeScript
51%
MIT

Anarlog

Note Taking · AI Assistants · Productivity

9,087

Anarlog is an open-source, local-first AI meeting notetaker that records, transcribes, and summarizes meetings entirely on your device — no cloud lock-in, no mandatory account, and every note saved as a plain markdown file you own forever.

View details
86
Repo Health
77
Technical
69
Dependency
Built with
TypeScript51%
Rust38%
Updated today
Rust
86%
Other

Arroyo

Data Engineering · Analytics

5,005

A distributed stream processing engine written in Rust that lets you write SQL to run stateful, real-time computations over data streams with subsecond results.

View details
86
Repo Health
74
Technical
62
Dependency
Built with
Rust86%
Updated 1 weeks ago
TypeScript
55%
Other

Cap

Team Chat · Video Conferencing

20,986

Open source Loom alternative with GPU-accelerated recording, instant share links, AI summaries, and full self-hosting via Docker Compose.

View details
89
Repo Health
81
Technical
65
Dependency
Built with
TypeScript55%
Rust40%
Updated yesterday
Swift
64%
GPL 3.0

cmux

Developer Tools · AI Development

26,221

A native, Ghostty-based macOS terminal with vertical tabs, agent-aware notifications, and a scriptable browser built for running many parallel AI coding agent sessions instead of juggling tmux panes.

View details
84
Repo Health
81
Technical
72
Dependency
Built with
Swift64%
Rust14%
Updated today
Go
32%
Apache 2.0

CubeSandbox

Developer Tools · Security · AI Agents

11,247

Instant, concurrent, hardware-isolated MicroVM sandboxes for AI agents — E2B-API compatible, sub-60ms cold starts, and a built-in zero-trust egress proxy, all self-hostable at scale.

View details
83
Repo Health
88
Technical
63
Dependency
Built with
Go32%
Rust31%
C21%
Updated today
Rust
50%
Other

hoodik

File Storage · Security

1,446

Self-hosted, end-to-end encrypted cloud storage with browser-based encryption and S3-compatible storage support

View details
74
Repo Health
71
Technical
65
Dependency
Built with
Rust50%
TypeScript33%
Vue15%
Updated 4 days ago
Go
62%
MIT

hoop

Security · Monitoring

791

A wire-protocol gateway that enforces data masking, command blocking, approval workflows, and full session recording for engineers and AI agents accessing production infrastructure.

View details
86
Repo Health
80
Technical
66
Dependency
Built with
Go62%
Clojure20%
JavaScript10%
Updated yesterday
TypeScript
67%
MIT

Hoppscotch

Developer Tools

80,055

A lightweight, offline-capable API development ecosystem for testing HTTP, GraphQL, WebSocket, MQTT, and SSE endpoints across web, desktop, and CLI.

View details
91
Repo Health
83
Technical
66
Dependency
Built with
TypeScript67%
Vue23%
Updated 3 days ago
TypeScript
76%
Other

Joplin

Note Taking

56,003

The privacy-first, open-source note-taking app with end-to-end encrypted sync, AI assistance, and a powerful plugin ecosystem across every platform.

View details
93
Repo Health
87
Technical
62
Dependency
Built with
TypeScript76%
JavaScript15%
Updated yesterday

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers

Search