dayjs
A Rust library providing a JavaScript Day.js-like API for date and time manipulation, built on top of chrono.
Features
- Simple API: JavaScript Day.js-inspired interface for Rust developers
- Timezone Support: Handle different timezone formats (offset, city names, numeric)
- Multiple Parsing Formats: Support for RFC3339, RFC2822, UTC suffix, and more
- Chainable Operations: Add/subtract time units with method chaining
- Type Safety: Leverages Rust's type system for safe time operations
- Zero-cost Abstractions: Built on
chronofor high performance
Installation
Add this to your Cargo.toml:
[]
= "^0.1"
Usage