https://github.com/murphsicles/time
Date and time library for Zeta — OffsetDateTime, Duration, formatting
https://github.com/murphsicles/time
Last synced: 22 days ago
JSON representation
Date and time library for Zeta — OffsetDateTime, Duration, formatting
- Host: GitHub
- URL: https://github.com/murphsicles/time
- Owner: murphsicles
- License: mit
- Created: 2026-05-15T20:56:00.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2026-05-15T23:28:28.000Z (2 months ago)
- Last Synced: 2026-05-15T23:54:07.346Z (2 months ago)
- Size: 107 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @time/time — Date and Time Library for Zeta
Auto-converted from [time](https://crates.io/crates/time) v0.3.47 via [Dark Factory](https://github.com/murphsicles/dark-factory).
## Features
- **OffsetDateTime** — date/time with UTC offset, nanosecond precision
- **PrimitiveDateTime** — date/time without timezone
- **Date** — year, month, day with comprehensive arithmetic
- **Time** — hour, minute, second, nanosecond
- **Duration** — signed duration with nanosecond precision
- **Formatting/parsing** — strftime-style format strings, ISO 8601, RFC 2822, RFC 3339
- **Serde** — serialization support via `@data/serde`
## Usage
```zeta
use @time/time::OffsetDateTime;
let now = OffsetDateTime::now_utc();
println!("{}", now.format("%Y-%m-%d %H:%M:%S"));
```
## Stats: ~9,553 lines, 0 unsupported items
## License: MIT