https://github.com/murphsicles/chrono
Date and time library for Zeta — NaiveDate, DateTime, TimeZone, Duration
https://github.com/murphsicles/chrono
Last synced: 22 days ago
JSON representation
Date and time library for Zeta — NaiveDate, DateTime, TimeZone, Duration
- Host: GitHub
- URL: https://github.com/murphsicles/chrono
- Owner: murphsicles
- License: mit
- Created: 2026-05-15T20:56:02.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2026-05-15T23:28:29.000Z (3 months ago)
- Last Synced: 2026-05-16T02:11:26.128Z (2 months ago)
- Size: 146 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @time/chrono — Date and Time Library for Zeta (High-Level)
Auto-converted from [chrono](https://crates.io/crates/chrono) v0.4.44 via [Dark Factory](https://github.com/murphsicles/dark-factory).
## Features
- **NaiveDate/NaiveTime/NaiveDateTime** — date/time without timezone
- **DateTime** — date/time with timezone (UTC, Local, FixedOffset)
- **TimeZone** — comprehensive timezone handling with DST
- **Duration** — signed duration (nanoseconds to weeks)
- **Formatting/parsing** — `format!`, `parse_from_str`, ISO 8601, RFC 2822, RFC 3339
- **Arithmetic** — add durations, compute time differences, weekday/month calculations
- **Serde** — serialization via `@data/serde`
## Usage
```zeta
use @time/chrono::{Utc, DateTime};
let now: DateTime = Utc::now();
println!("{}", now.format("%Y-%m-%d %H:%M:%S"));
```
## Stats: ~16,578 lines, 0 unsupported items
## License: MIT